SELECT * FROM view_location WHERE med_lable <> '' INTO OUTFILE 'C:/MedicineBox.cfg' LINES TERMINATED BY '\r\n';
The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
使用以下SQL语句查看 secure-file-priv 的值
show variables like '%secure%';
解决方案
修改导出文件目录权限步骤如下:
第一步、在my.ini中添加如下
1、禁止输出
secure_file_priv=null
2、指定文件夹下输出:
secure_file_priv="C:/Program Files/MySQL/MySQL Server 5.5/"
3、不限制目录输出:
secure_file_priv=