测试mysqldump导出csv报了mysqldump: Got error: 1290,如下:
C:\Users\zjhua>mysqldump -h192.168.2.22 -P3306 -uroot -p123456 -t zipkin --tables zipkin_spans --tab=abc
mysqldump: Got error: 1290: "The MySQL server is running with the --secure-file-priv option so it cannot execute this statement" when executing 'SELECT INTO OUTFILE'
说明导出csv是基于服务端的select into outfile的。--secure-file-priv选项设置了用于SELECT INTO OUTFILE和LOAD FROM FILE的目录。和oracle directory一个模式。