Server version: 5.5.56-log Source distribution
已在我的secure_file_priv
中设置了/etc/my.cnf
mysql> SHOW VARIABLES LIKE "secure_file_priv";
+------------------+---------------+
| Variable_name | Value |
+------------------+---------------+
| secure_file_priv | /target_file |
+------------------+---------------+
已通过service mysql restart
重新启动了myssql服务,此外我也重新启动了服务器/计算机
然后我设置了chmod 777 /target_file
但我仍然得到
>> select * from mytable into outfile '/target_file/config';
>> ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
我错过了什么吗?