SQL执行报错The MySQL server is running with the read-only

The MySQL server is running with the--read-only option so it cannot execute this statement

看下global设置 select @@read_only; 如果结果是1 这种错误意味着这个数据库是只读数据库。不能进行DML、增删改等语句

可能的你连接到了从库,或者,如果你有权限的话修改@@read_only的值为0


版权声明:本文为qq_41810184原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。