我不得不在OSX 10.12.4上使用Homebrew 1.1.11(mysql@5.6公式)重新安装MySQL 5.6,这是我第一次看到这个问题。基本上,新安装似乎启用了--secure-file-priv选项。
The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
这是一个记录良好的问题,我已经读过线程,但是它们似乎都没有说出Homebrew设置此选项的位置?所有提到的文件位置都没有出现在我的MySQL安装中。
我只需要禁用该选项,我不想指定特定的文件夹。任何帮助表示赞赏!
答案 0 :(得分:3)
对于遇到此问题的其他任何人,您可以通过在主目录中放置.my.cnf
来解决问题:
[mysqld_safe]
[mysqld]
secure_file_priv=""