最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

記一次mariadb數(shù)據(jù)庫無法連接

 更新時間:2016年10月05日 09:45:02   作者:chenshake  
本文給大家分享的是一次mariadb數(shù)據(jù)庫無法連接的處理方法,主要是給大家簡單描述下處理的思路,希望對大家處理mariadb數(shù)據(jù)庫有所幫助。

自從自己維護blog以后,基本一個月內(nèi),都會出現(xiàn)1,2次這種錯誤,以前解決的辦法很簡單,就是把虛擬機重啟一下就可以。經(jīng)常是網(wǎng)友在微信,qq,微博提醒我blog掛掉。

剛好國慶期間碰上,就順便提高一下自己的運維能力,看看具體的原因。

tail /var/log/mariadb/mariadb.log

看到大概的錯誤

161004 11:21:05 InnoDB: Fatal error: cannot allocate memory for the buffer pool
161004 11:21:05 [ERROR] Plugin 'InnoDB' init function returned error.
161004 11:21:05 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
161004 11:21:15 [Note] Plugin 'FEEDBACK' is disabled.
161004 11:21:16 [ERROR] Unknown/unsupported storage engine: InnoDB
161004 11:21:16 [ERROR] Aborting

其實我也能猜到,肯定是數(shù)據(jù)庫的內(nèi)存使用有啥問題。

有錯誤,其實就是利用google,基本就有答案

http://www.webtrafficexchange.com/solved-mysql-crash-fatal-error-cannot-allocate-memory-buffer-pool

我使用的青云的虛擬機,swap分區(qū),就是1G,所以應(yīng)該也不需要創(chuàng)建。

編輯 /etc/my.cnf,

[mysqld]
innodb_buffer_pool_size=64M

重啟mysql

systemctl restart mariadb

查看swap內(nèi)存使用

# free -m
       total    used    free   shared buff/cache  available
Mem:      993     431     386      6     175     424
Swap:     1023      0    1023

查看一下啟動日志

[root@chenshake mariadb]# tail /var/log/mariadb/mariadb.log
161004 20:42:46 InnoDB: Initializing buffer pool, size = 64.0M
161004 20:42:46 InnoDB: Completed initialization of buffer pool
161004 20:42:46 InnoDB: highest supported file format is Barracuda.
161004 20:42:46  InnoDB: Waiting for the background threads to start

密切關(guān)注一下后續(xù)的效果如何。

相關(guān)文章

最新評論

凯里市| 黑龙江省| 大渡口区| 巴林右旗| 宝清县| 康平县| 定安县| 宜都市| 临猗县| 合山市| 鄯善县| 崇明县| 昆山市| 长白| 鹤壁市| 安国市| 兰州市| 揭阳市| 晋宁县| 肥东县| 柘城县| 凤城市| 沂南县| 多伦县| 山东省| 东平县| 清涧县| 富蕴县| 望都县| 龙口市| 玉树县| 天全县| 房产| 岗巴县| 奉节县| 牙克石市| 万年县| 大城县| 昭通市| 咸宁市| 成安县|