技术知识库

帮助中心 >  产品文档 >  数据库 >  The MySQL server is running with the --secure-file-priv option so it cannot execute this statement解决

image.png


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


修改MySQL安装路径下的my.ini,在添加“secure-file-priv=路径名”这一行,重启mysql

注意secure-file-priv=/tmp/这一行是要添加在[mysqld]与[mysqldump]之间,很多网上的教程说是添加在配置文件的末尾,这是错误的。


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: