mysql - 啓動錯誤InnoDB: mmap(137363456 bytes) failed; errno 12

【zsm】下午mysql出現了問題,很糾結,最後找到了緣由,緣由是內存不夠用;mysql

查看內存顯示  
[root@AY1305070924544 /]# free -m
             total       used       free     shared    buffers     cached
Mem:           995        928         66          0          6         19
-/+ buffers/cache:        903         91
Swap:            0          0          0
重啓錯誤提示 
[root@AY1305070924544 /]# /etc/init.d/mysqld start
Starting MySQL. ERROR! The server quit without updating PID file (/var/mysql/data/AY1305070924544.pid).
[root@AY1305070924544 /]# /etc/init.d/mysqld restart
 ERROR! MySQL server PID file could not be found!
Starting MySQL. ERROR! The server quit without updating PID file (/var/mysql/data/AY1305070924544.pid).
這個其實日誌裏面說的很明白就是 mysql要佔用內存的時候 物理內存不夠用致使的 全部 vim /etc/my.cnf
[inonodb]
innodb_buffer_pool_size=64MB  把這個數值改小 高版本的默認是128mb  版本的默認是8Mb
相關文章
相關標籤/搜索