MySQL用into outfile导出出错The MySQL server is running with the --secure-file-priv option so it cannot ex
2018-03-05 16:49
891 查看
先查询secure-file-priv变量的值
value为“null”表示禁止导出
解决步骤:打开MySQL安装路径下的文件my.ini——在[mysqld]下输入secure_file_priv =文件存放地址(自己设置)——重启MySQL服务
若value为具体地址,则导出的文件地址与在value目录下才会成功导出。
outfile可以自动创建文件,但不能重写已存在的文件。
value为“null”表示禁止导出
解决步骤:打开MySQL安装路径下的文件my.ini——在[mysqld]下输入secure_file_priv =文件存放地址(自己设置)——重启MySQL服务
若value为具体地址,则导出的文件地址与在value目录下才会成功导出。
outfile可以自动创建文件,但不能重写已存在的文件。
相关文章推荐
- Windows sql语句正则匹配导出数据到本地 The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
- mysql>导出数据为txt时报错:The MySQL server is running with the --secure-file-priv option so it cannot execut
- MYSQL导出数据出现The MySQL server is running with the --secure-file-priv option so it cannot execute this
- 数据库权限The MySQL server is running with the --secure-file-priv option so it cannot execute this
- [Error Code: 1290. 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 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 cannot exec
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot exec
- 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解决
- 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
- MYSQL 5.7报错 Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it..
- mysqldump: Got error: 1290: The MySQL server is running with the --secure-file-priv option so it can
- mysql 导出数据到文件 ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it ...statemet
- mysql导出表到CSV文件方法及提示错误[Err] 1290 - The MySQL server is running with the --secure-file-priv option解决办法
- The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement