阿里云9.9元云服务器限时购买

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

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

posted @ 2019-09-05 13:45  HIIT  阅读(32615)  评论(1)    收藏  举报
阿里云限时红包 最高 ¥ 2000 云产品通用红包,可叠加官网常规优惠使用