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;
相關文章
- MySQL 5.6 global read lock 介紹MySql
- MySQL5.7 Waiting FOR TABLE FLUSHMySqlAI
- Waiting for table metadata lockAI
- 【Mysql】FLUSH TABLES WITH READ LOCKMySql
- Waiting Too Frequently for 'db file sequential read'AI
- create table if not exists Waiting for table metadata lockAI
- Python GIL(Global Interpreter Lock)Python
- MySQL新增索引偶遇waiting for table metadata lockMySql索引AI
- MySQL DDL Waiting for table metadata lock 解決MySqlAI
- PostgreSQL原始碼定製:線上global read onlySQL原始碼
- ORA-04021: timeout occurred while waiting to lock objectWhileAIObject
- Another app is currently holding the yum lock; waiting for it to exit...APPAI
- ORA-04021,timeout occurred while waiting to lock objectWhileAIObject
- MySQL:簡單記錄一下Waiting for commit lockMySqlAIMIT
- ORA-02049: timeout: distributed transaction waiting for lockAI
- MySQL 5.5 FLUSH TABLES WITH READ LOCK語句介紹MySql
- yum 提示 Another App is currently holding the yum lock; waiting for it to exit...APPAI
- mysql snapshot read快照讀及current read當前讀與鎖lock之一MySql
- mysql關於FLUSH TABLES和FLUSH TABLES WITH READ LOCK的理解MySql
- 當匯入flutter專案時,報Waiting for another flutter command to release the startup lockFlutterAI
- Linux核心同步機制之(五):Read Write spin lock【轉】Linux
- Another app is currently holding the yum lock; waiting for it to exit...另一個應用程式在佔用yum lock,等待其退出。APPAI
- MySQL 8.0 Reference Manual(讀書筆記66節--locking read 與lock)MySql筆記
- SCSS !globalCSS
- Right here waitingAI
- JavaScript Global 物件JavaScript物件
- Global Nonpartitioned IndexesIndex
- 【眼見為實】自己動手實踐理解資料庫REPEATABLE READ && Next-Key Lock資料庫
- RMAN progress and what it is waiting for scriptsAI
- Global Range Partitioned IndexesIndex
- Global Hash Partitioned IndexesIndex
- Maintenance of Global Partitioned IndexesAINaNIndex
- direct path read/read temp等待事件事件
- ## yum提示Another app is currently holding the yum lock; waiting for it to exit... 這是因為有另一個yum程式正在執行APPAI
- oracle lock鎖_v$lock_轉Oracle
- MySQL5.7 多例項MySql
- C++ Gotchas 條款62:替換Global New和Global Delete (轉)C++Godelete
- read repeatable&read committed 區別MIT