45fan.com - 路饭网

搜索: 您的位置主页 > 网络频道 > 阅读资讯:MYSQL导出数据出现The MySQL server is running with the --secure-fil

MYSQL导出数据出现The MySQL server is running with the --secure-fil

2019-03-26 17:53:44 来源:www.45fan.com 【

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 当前的值是什么

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

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

 

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

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

 

 


本文地址:http://www.45fan.com/a/question/99656.html
Tags: mysql 导出 数据
编辑:路饭网
关于我们 | 联系我们 | 友情链接 | 网站地图 | Sitemap | App | 返回顶部