如何在Mac中修复secure_file_priv

时间:2019-11-13 09:44:50

标签: mysql mysql-workbench mysql-error-1064

我将我的secure_file_priv设置为“ my.cnf”中的文件夹路径。终端和工作台都显示正确的secure_file_priv路径,但我仍然得到<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.6.3/umd/react.production.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.6.3/umd/react-dom.production.min.js"></script> <div id="container"> </div>

运行ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement后来自终端的结果是:

SHOW VARIABLES LIKE "secure_file_priv"

工作台选项文件的结果是相同的路径。我不知道为什么我仍然不能使用+-----------------+--------------------+ | Variable_name | Value | +-----------------+--------------------+ |secure_file_priv |/Users/Desktop/test/| +-----------------+--------------------+ 。任何帮助将不胜感激!

0 个答案:

没有答案