1209 - The MySQL server is running with the --read-only option so it cannot execute this statement
一般這個錯誤有兩種原因:
1.連到從庫了。從庫一般設置為只讀。
2.主庫的read_only參數被修改為1
解決辦法:set global read_only=0;
https://blog.csdn.net/lwei_998/article/details/50445830
https://stackoverflow.com/questions/35445190/strange-mysql-read-only-error
文章來源:劉俊濤的博客
歡迎關注,有問題一起學習歡迎留言、評論
每一個你不滿意的現在,都有一個你沒有努力的曾經。