MySQL新建用户保存的时报错:The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

又是这种错, 以前没遇过, 没办法, 直接google.

下面看解决办法:

登录mysql, 当然了如果您登录不上(密码错误情况), 直接扔这个属性进去my.cnf配置文件skip-grant-table登录密码也省了

(关闭新主库的只读属性)
mysql> set global read_only=0;

(刷新)
mysql>  flush privileges;


大功告成! so easy!

  

posted @ 2017-08-23 15:23  扶苏公子x  阅读(420)  评论(0编辑  收藏  举报