美文网首页
mysql导出txt

mysql导出txt

作者: 萨满原子 | 来源:发表于2019-07-09 17:05 被阅读0次

MYSQL导入数据出现The MySQL server is running with the --secure-file-priv option so it cannot execute this statement

这个原因其实很简单,是因为在安装MySQL的时候限制了导入与导出的目录权限

只能在规定的目录下才能导入

我们需要通过下面命令查看 secure-file-priv 当前的值是什么

show variables like '%secure%';

查看导出路径

导出:select wxddh into outfile "C:/Users/admin/Desktop/wxddh.txt"  lines terminated by “\r\n” (每一行都换行) from ds_dingdan;

相关文章

网友评论

      本文标题:mysql导出txt

      本文链接:https://www.haomeiwen.com/subject/zdhfkctx.html