mysql提示错误[Error Code] 1290 - The MySQL server is running with the --secure-file-priv option解决办法

1.进入mysql查看secure_file_prive的值

$mysql -u root -p

mysql>SHOW VARIABLES LIKE "secure_file_priv";

secure_file_prive=null   -- 限制mysqld 不允许导入导出

secure_file_priv=/tmp/   -- 限制mysqld的导入导出只能发生在/tmp/目录下

secure_file_priv=' '         -- 不对mysqld 的导入 导出做限制

2.更改secure_file_pri的值

找到my.ini配置文件,加入在mysqld目录下,secure_file_priv='',重启mysql服务器即可。

猜你喜欢

转载自www.cnblogs.com/dalijiang/p/11309658.html