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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM