Ubuntu Server 14.04 --secure-file-priv error in MySql 解决方案

在VPS部署Ubuntu 14.04服务器时,MySQL执行导出文件命令,报错:

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

问题分析:只能保存在指定默认目录下

解决方案:

在my.cnf [mysqld] 组中增加配置行:

secure-file-priv  =  "/youSaveFilePath"

重启服务生效:

sudo /etc/init.d/mysql restart

全部评论

相关推荐

点赞 评论 收藏
分享
白火同学:大二有这水平很牛了,可以适当对关键信息加粗一点,比如关键技术、性能指标之类的。
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务