MYSQL导入数据出现The MySQL server is running with the --secure-file-priv
来源:互联网 发布:淘宝为什么不能改名字 编辑:程序博客网 时间:2024/05/22 16:59
我相信很多同学都遇到过这样的问题
MYSQL导入数据出现The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
方法一:
这个原因其实很简单,是因为在安装MySQL的时候限制了导入与导出的目录权限
只能在规定的目录下才能导入
我们需要通过下面命令查看 secure-file-priv 当前的值是什么
show variables like '%secure%';
我们可以看到value的值为E:\mysql\
那么我们把导入的路径改为上面的值就可以了
方法二:
如果觉得这样太麻烦,那么我们就需要改配置文件,
到C:\ProgramData\MySQL\MySQL Server 5.7目录下找到my.ini
的配置文件,(注意ProgramData是隐藏目录需要去 计算机->工具->文件夹选项 里面把隐藏的文件显示出来)
在my.ini文件中搜索secure-file-priv找到并将它的值改为
secure-file-priv=‘’(注意不是下划线)
重启MySQL就可以在任何目录下操作了(如果重启MySQL不行就重启电脑,博主亲测)
重启方法为:
右键点击 计算机->管理->服务和应用程序->找到MySQL点击右键->重新启动
如果觉得不错的小伙伴,请动动你可爱的小指头,为博主点个赞。*^_^*
阅读全文
1 0
- MYSQL导入数据出现The MySQL server is running with the --secure-file-priv
- MYSQL导出数据出现The MySQL server is running with the --secure-file-priv option
- MYSQL导出数据出现The MySQL server is running with the --secure-file-priv option so it cannot execute this
- Windows下MySQL导入csv文件ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv opti
- 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 op
- 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
- MySQL 报错Error Code: 1290. The MySQL server is running with the --secure-file-priv option
- 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 ...statemet
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot exec
- mysqldump: Got error: 1290: The MySQL server is running with the --secure-file-priv option so it can
- mysql>导出数据为txt时报错:The MySQL server is running with the --secure-file-priv option so it cannot execut
- mysql导出表到CSV文件方法及提示错误[Err] 1290 - The MySQL server is running with the --secure-file-priv option解决办法
- MySQL 报错 ERROR 1290 (HY000): running with the --secure-file-priv
- C# 实现多种Word邮件合并功能
- 通达OA2017破解版,手机端,电脑端,各种常用组件
- Node.js 资源汇总
- 关于统计变换(CT/MCT/RMCT)算法的学习和实现
- QT之多线程学习笔记
- MYSQL导入数据出现The MySQL server is running with the --secure-file-priv
- struct和typedef struct
- 企业安全丨旧瓶新酒之ngx_lua & fail2ban实现主动诱捕
- 关于android 导入第三方.so库文件在低版本Android手机上正常使用,在5.0版本的手机上就出现闪退
- 重写鼠标悬停事件(针对IE)
- spring boot整合RabbitMQ(Direct模式)
- Winsock编程实例
- unity 贪吃蛇作战—2
- Python 字典(dict) 操作基础