首页 > 数据库技术 > 详细

MySQL报错解决:The MySQL server is running with the --read-only option so it cannot execute this statement

时间:2019-09-05 14:59:44      阅读:1996      评论:0      收藏:0      [点我收藏+]

MySQL报错:The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement等问题

1.登录的mysql:mysql –u root –p

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

 flush privileges;

2.修改mysql配置文件my.cnf,该文件在/etc目录下

技术分享图片

技术分享图片

重启mysql服务:service mysqld restart

MySQL报错解决:The MySQL server is running with the --read-only option so it cannot execute this statement

原文:https://www.cnblogs.com/hiit/p/11465470.html

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