问题遇到的现象和发生背景
用代码导出MySQL数据报错
问题相关代码,请勿粘贴截图
```sql
<e>查询:select * from table_a INTO OUTFILE 'C:/Users/Administrator/Desktop/runoob.txt'
错误代码: 1290
The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
###### 运行结果及报错内容
The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
###### 我的解答思路和尝试过的方法
尝试过这个网址的解决方法,在MySQL的配置文件里面的my.ini文件里面没有看到有这个属性,我就自己添加上去了
```sql
# 导入导出数据路径
secure_file_priv="C:\Users\Administrator\Desktop"
重启了一下服务跟SQLyog一样没有效果
```sql
SHOW VARIABLES LIKE '%secure%';
![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/670324649046191.png "#left")
###### 我想要达到的结果
解决问题