解決mysql出現“the table is full”的問題
阿新 • • 發佈:2019-02-03
今天中午收到mysql錯誤日誌監控發來的警報,錯誤日誌如下:
101209 13:13:32 [ERROR] /usr/local/mysql/bin/mysqld: The table 'test_1291870945841162' is full
101209 13:13:32 [ERROR] /usr/local/mysql/bin/mysqld: The table 'test_1291870945841162' is full
101209 13:13:32 [ERROR] /usr/local/mysql/bin/mysqld: The table 'test_1291870945841162' is full
101209 13:13:32 [ERROR] /usr/local/mysql/bin/mysqld: The table 'test_1291870945841162' is full
通過查詢mysql官方站點:
http://dev.mysql.com/doc/refman/5.0/en/full-table.html 得知:
因為系統是linux,不存在作業系統和檔案格式的限制,通過表的名字可以得知,該表應該是個臨時表,再說資料庫裡面也查不到該表。
有這一句話很重要:
You are using the MEMORY (HEAP) storage engine; in this case you need to increase the value of the max_heap_table_size system variable. See Section 5.1.3, “Server System Variables”.
於是就修改Mysql的配置檔案/etc/my.cnf,在[mysqld]下新增/修改兩行:
tmp_table_size = 256M
max_heap_table_size = 256M
系統預設是16M,別忘記重新啟動mysql,你也可以線上動態修改該引數,經過這幾天的觀察,這個世界安靜了許多。
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script> 閱讀(5208) | 評論(0) | 轉發(0) | 給主人留下些什麼吧!~~ 評論熱議
101209 13:13:32 [ERROR] /usr/local/mysql/bin/mysqld: The table 'test_1291870945841162' is full
101209 13:13:32 [ERROR] /usr/local/mysql/bin/mysqld: The table 'test_1291870945841162' is full
101209 13:13:32 [ERROR] /usr/local/mysql/bin/mysqld: The table 'test_1291870945841162' is full
101209 13:13:32 [ERROR] /usr/local/mysql/bin/mysqld: The table 'test_1291870945841162' is full
通過查詢mysql官方站點:
http://dev.mysql.com/doc/refman/5.0/en/full-table.html 得知:
因為系統是linux,不存在作業系統和檔案格式的限制,通過表的名字可以得知,該表應該是個臨時表,再說資料庫裡面也查不到該表。
有這一句話很重要:
You are using the MEMORY (HEAP) storage engine; in this case you need to increase the value of the max_heap_table_size system variable. See Section 5.1.3, “Server System Variables”.
於是就修改Mysql的配置檔案/etc/my.cnf,在[mysqld]下新增/修改兩行:
tmp_table_size = 256M
max_heap_table_size = 256M
系統預設是16M,別忘記重新啟動mysql,你也可以線上動態修改該引數,經過這幾天的觀察,這個世界安靜了許多。
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script> 閱讀(5208) | 評論(0) | 轉發(0) | 給主人留下些什麼吧!~~ 評論熱議