Error Code: 1290. The MySQL server is running with the --secure-file-priv op
2017-05-10 10:08
666 查看
我的MYSQL版本是5.7,一开始将导入文件放在”桌面”上,然后提示该错误。原因是导入文件所在目录不是安全目录。
方法一:
首先执行
查询结果中会有这样一条记录
同样,导出文件的指定目录也要在该路径下面。
方法二:
修改
该配置文件在windows上的路径为
`secure-file-priv=”C:/ProgramData/MySQL/MySQL Server 5.7/Uploads”
将后面的路径指向上传文件或导出文件的父级路径即可
方法一:
首先执行
show variables like '%secure%';,查看MYSQL指定的安全目录在哪里。
查询结果中会有这样一条记录
secure_file_priv | C:\ProgramData\MySQL\MySQL Server 5.7\Uploads\,该路径为安全路径,我们将需要导入的文件放在这个文件夹下面即可。
同样,导出文件的指定目录也要在该路径下面。
方法二:
修改
my.ini配置文件,重新指定安全路径。
该配置文件在windows上的路径为
C:\ProgramData\MySQL\MySQL Server 5.7,打开之后找到
`secure-file-priv=”C:/ProgramData/MySQL/MySQL Server 5.7/Uploads”
将后面的路径指向上传文件或导出文件的父级路径即可
相关文章推荐
- MySQL 报错Error Code: 1290. The MySQL server is running with the --secure-file-priv option
- csv导入mysql提示错误[Error Code] 1290 - The MySQL server is running with the --secure-file-priv option
- MYSQL 5.7报错 Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it..
- Error Code: 1290. The MySQL server is running with the --secure-file-priv option
- Mac上csv导入mysql提示错误[Error Code] 1290 - The MySQL server is running with the --secure-file-priv option解决办法
- csv导入mysql提示错误[Error Code] 1290 - The MySQL server is running with the --secure-file-priv option 解决方
- [Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it cannot execute this statement]错误解决
- Mac上csv导入mysql提示错误[Error Code] 1290 - The MySQL server is running with the --secure-file-priv option
- csv导入mysql提示错误[Error Code] 1290 - The MySQL server is running with the --secure-file-priv option 解决方法【转】
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot exec
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot exec
- mysql 导出数据到文件 ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so
- Windows10 MySQL5.7.21.0 ERROR 1290 (HY000): The MySQL server is running with the --secure-file-p解决办法
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
- mysqldump: Got error: 1290: The MySQL server is running with the --secure-file-priv option so it can
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot exec
- Windows下MySQL导入csv文件ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv opti
- MySQL报错ErrorCode:1290.TheMySQLserverisrunningwiththe--secure-file-privoption
- mysql导出表到CSV文件方法及提示错误[Err] 1290 - The MySQL server is running with the --secure-file-priv option解决办法