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

你可能感兴趣的:(SQL执行报错The MySQL server is running with the read-only)