快轉到主要內容

Aliyun MySQL Aborting

331 字1 分鐘00
作者Y Cheung

放了wordpress的主機最近經常掛掉,提示無法連結數據庫,檢查log信息發現是因為內存不足,把InnoDB的buffer pool size改小後似乎好了一些,可今天還是出錯了,log信息如下:

 1151210  6:45:23 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
 2151210  6:45:23 [Note] Plugin 'FEDERATED' is disabled.
 3151210  6:45:23 InnoDB: The InnoDB memory heap is disabled
 4151210  6:45:23 InnoDB: Mutexes and rw_locks use GCC atomic builtins
 5151210  6:45:23 InnoDB: Compressed tables use zlib 1.2.8
 6151210  6:45:23 InnoDB: Using Linux native AIO
 7151210  6:45:23 InnoDB: Initializing buffer pool, size = 96.0M
 8InnoDB: mmap(103022592 bytes) failed; errno 12
 9151210  6:45:23 InnoDB: Completed initialization of buffer pool
10151210  6:45:23 InnoDB: Fatal error: cannot allocate memory for the buffer pool
11151210  6:45:23 [ERROR] Plugin 'InnoDB' init function returned error.
12151210  6:45:23 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
13151210  6:45:23 [ERROR] Unknown/unsupported storage engine: InnoDB
14151210  6:45:23 [ERROR] Aborting

further search了一下,有建議說增加SWAP交換空間來解決。於是查看了本機swap空間情況,發現原來沒有…

好吧,那就增加一個SWAP空間試一段時間看看好了.

參考:Ubuntu修改swap交换空间

分享

相關文章

忘記 Mysql ROOT 密碼的解決辦法

作者 Y Cheung174 字1 分鐘00

豬腦袋是記不住密碼的。 靠別人也是記不住密碼的。 環境 Ubuntu 操作步驟 修改MySQL配置 在 /etc/my.cnf 中的 [mysqld]段尾處加入以下語句:

ubuntu vps上的文件权限配置

作者 Y Cheung238 字1 分鐘00

设置目录内所有文件及文件夹(包括子文件夹内)的权限为-rw-r–r–(644): chmod -R 644 * 设置目录内所有文件(不包括子文件夹内)的权限为 …

修復a2ensite 報錯 Site does not exist

作者 Y Cheung208 字1 分鐘00

給ubuntu主機配置一個子域名的時候,發現用 a2ensite 居然報錯了!明明看了好些教程,比如這個,這個,都是講的差不多的東西,我都完全照著做,怎麼我一運行這個命令就報錯 …

WordPress宕机一日

作者 Y Cheung615 字2 分鐘00

昨天突然无法访问我的blog了,还以为我又折腾什么出错了,却发现连服务器都进不去了。大件事啦! 联系了hugege(我在他那里租的主机),说是到国内的线路抽风喔。于是,我又定了定神 …

↑