mysql在select into outfile时出错

admin 2018年10月24日16:52:14Mysql评论2,577 次浏览阅读模式

测试mysql的select into outfile时,报错“

The MySQL server is running with the --secure-file-priv

”

mysql在select into outfile时出错

查询了下,通过mysql命令查看secure-file-priv项:

show variables like '%secure%';

如果secure-file-priv为空,则可任意位置导出导入

如果secure-file-priv为null,则不可导出导入

如果secure-file-priv为指定位置,则指定位置导出

处理:

在mysql目录下找到my.ini,添加:

secure_file_priv=

,然后重启mysql即可

mysql在select into outfile时出错

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2018年10月24日16:52:14
  • 转载请务必保留本文链接:https://anyun.org/a/jishuguanzhu/database/mysql/2018/1024/9496.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: