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报错解决:The MySQL server is running with the --read-only option so it cannot execute this statement

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

重启mysql服务:service mysqld restart

相关文章:

  • 2022-03-02
  • 2021-11-06
  • 2022-12-23
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-04
  • 2022-02-11
  • 2021-08-12
  • 2021-12-31
  • 2022-12-23
相关资源
相似解决方案