MySQL5.7 Waiting for global read lock
系統報故障不能使用,從應用的日誌上分析:
Cause: java.sql.SQLException: The MySQL server is running with the --read-only option so it cannot execute this statement
show processlist可以看到 99%的(3200個)會話報Waiting for global read lock
unlock tables之後,會話鎖的問題解決,但系統還是不能使用,日誌依然報read-only的錯誤。
mysql> show variables like ‘%read_only%’;
±-----------------±------+
| Variable_name | Value |
±-----------------±------+
| innodb_read_only | ON |
| read_only | ON |
| tx_read_only | OFF |
±-----------------±------+
執行下面的語句,系統即可以訪問:
set global read_only=0;
set global super_read_only=0;
flush privileges;
相關文章
- MySQL5.7 Waiting FOR TABLE FLUSHMySqlAI
- Python GIL(Global Interpreter Lock)Python
- MySQL新增索引偶遇waiting for table metadata lockMySql索引AI
- MySQL DDL Waiting for table metadata lock 解決MySqlAI
- ORA-04021: timeout occurred while waiting to lock objectWhileAIObject
- yum 提示 Another App is currently holding the yum lock; waiting for it to exit...APPAI
- MySQL:簡單記錄一下Waiting for commit lockMySqlAIMIT
- mysql snapshot read快照讀及current read當前讀與鎖lock之一MySql
- 當匯入flutter專案時,報Waiting for another flutter command to release the startup lockFlutterAI
- mysql關於FLUSH TABLES和FLUSH TABLES WITH READ LOCK的理解MySql
- Linux核心同步機制之(五):Read Write spin lock【轉】Linux
- MySQL 8.0 Reference Manual(讀書筆記66節--locking read 與lock)MySql筆記
- Waiting for target device to come onlineAIdev
- ## yum提示Another app is currently holding the yum lock; waiting for it to exit... 這是因為有另一個yum程式正在執行APPAI
- 【眼見為實】自己動手實踐理解資料庫REPEATABLE READ && Next-Key Lock資料庫
- SCSS !globalCSS
- direct path read/read temp等待事件事件
- 4.4global
- JavaScript Global 物件JavaScript物件
- Deep Global Registration
- Read a story
- READ ME
- MySQL:Analyze table導致'waiting for table flush'MySqlAI
- GLOBAL TEMPORARY TABLE(轉)
- Codeforces Global Round 26
- Codeforces Global Round 27
- Codeforces Global Round 13
- 等待事件db file sequential read、db file scattered read和direct read的區別事件
- @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_EXECUTED is empty
- Lock 鎖
- MySQL Cases-記錄大量waiting for handler commitMySqlAIMIT
- TIC Read Status
- Read-onlydynamicdata
- [Bash] read command
- mysql innodb lock鎖之record lock之一MySql
- [Vue] Provide and Inject Global StorageVueIDE
- Codeforces Global Round 26 (A - D)
- Error waiting for a debug connection: ProcessException: adb did not report forwarded portErrorAIExceptionForward