ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot exec
2017-03-07 17:28
921 查看
MYSQL错误:MySQL服务器正在使用–secure-file-priv选项运行,因此无法执行此语句(谷歌翻译);
遇到此情况,说明secure-file-priv其设置了导出文件路径,必须在其规定的路径内,否则导出失败。两种解决办法:
一.将MYSQL服务停掉,进入my.ini配置文件,将secure-file-priv此行删除,而后保存,开启MYSQL服务,就可在任意文件内导出数据库了。
二.(推荐做法)
与其删除掉,不如顺着此设置,就将数据库导入到该目录下。
做法:
我们观察到导出路径了,然后就可备份导出了
然后我们查看导出的内容
进入C:,发现并没有programdata文件夹,可能被隐藏了,于是显示所有的隐藏文件,找到该路径。
相关文章推荐
- 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
- 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
- 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 execute this statement
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it ...statemet
- mysql 导出数据到文件 ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so
- [Error Code: 1290. 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
- Windows sql语句正则匹配导出数据到本地 The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
- ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot exe
- MySQL用into outfile导出出错The MySQL server is running with the --secure-file-priv option so it cannot ex
- ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statemen
- MYSQL 5.7报错 Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it..
- ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot exe
- ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot exe
- ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statemen
- ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot exe
- ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot exe