1290 - The MySQL server is running with the --secure-file-priv option so it cannot execute this statement

时间:2021-12-19 16:34:51

解决问题:
windows下:修改my.ini 在[mysqld]内加入secure_file_priv =

linux下:修改my.cnf 在[mysqld]内加入secure_file_priv =
MYSQL新特性secure_file_priv对读写文件的影响
然后重启mysql,再查询secure_file_priv