100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > MYSQL导出数据出现The MySQL server is running with the --secure-file-priv option so it cannot execute this

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

时间:2024-08-29 01:28:26

相关推荐

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

今天尝试使用 into outfile导出数据的时候出现错误:

The MySQL server is running with the --secure-file-priv option so it cannot execute this statement

上网查了一下,应该是mysql设置的权限,可以使用

show variables like '%secure%';查看secure-file-priv 当前的值是什么

导出的数据必须是这个值的指定路径才可以导出,默认有可能是NULL就代表禁止导出,所以需要设置一下

知道mysql安装路径下的my.ini文件,设置一下路径:

然后重启数据库即可;

来源:/man_to_home/article/details/54947518

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。