测试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一个模式。

相关文章:

  • 2021-07-03
  • 2021-10-10
  • 2022-12-23
  • 2022-02-14
  • 2021-08-03
  • 2021-07-17
  • 2021-05-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2021-11-22
  • 2022-01-08
相关资源
相似解决方案