mysql 1290:已设置“ secure_file_priv”并使用了绝对路径

时间:2018-09-28 10:40:20

标签: mysql

系统:Centos

版本:

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

我错过了什么吗?

0 个答案:

没有答案