首页 > 数据库技术 > 详细

mysql导入导出无权限

时间:2020-02-14 22:17:43      阅读:92      评论:0      收藏:0      [点我收藏+]

error:The MySQL server is running with the --secure-file-priv option so it cannot execute this statement。

  1. 查看当前secure-file-priv
    • 登录mysql
    • show variables like ‘%secure%‘;
    • find / -name my.cnf 或者 find / -name my.ini
    • vim my.cnf 查看secure-file-priv=null
  2. 说明是由于secure-file-priv=null导致没有权限导入导出
    • 更改my.cnf 文件secure-file-priv=""
  3. 重启服务

  4. 如果secure-file-priv="/home/"说明导出只能发生在home目录下

mysql导入导出无权限

原文:https://www.cnblogs.com/Victor-ZH/p/12309484.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!