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

从库 对表做truncate 时报1209 - The MySQL server is running with the--read-only option so it cannot execute this statement

处理:

select @@read_only;

set global read_only=0;

truncate table *.*

set global read_only=1;

posted @ 2023-08-02 10:31  刚好遇见Mysql  阅读(180)  评论(0编辑  收藏  举报