mysql掛掉 mysql總是無緣無故的掛掉

2021-10-17 12:18:21 字數 804 閱讀 3953

偶爾上一下自己的部落格,發現最近總是出現mysql掛掉的現象,於是網上查了一下相關資訊,檢視mysql的錯誤日誌,發現有

2019-11-13t09:37:10.347713z 0 [error] innodb: mmap(137428992 bytes) failed; errno 12

2019-11-13t09:37:10.347721z 0 [error] innodb: cannot allocate memory for the buffer pool

2019-11-13t09:37:10.347726z 0 [error] innodb: plugin initialization aborted with error generic error

2019-11-13t09:37:10.347763z 0 [error] plugin 『innodb』 init function returned error.

2019-11-13t09:37:10.347768z 0 [error] plugin 『innodb』 registration as a storage engine failed.

2019-11-13t09:37:10.347772z 0 [error] failed to initialize plugins.

2019-11-13t09:37:10.347775z 0 [error] aborting

看樣子像是記憶體不足造成的,修改一下my.cnf

將原來的innodb_buffer_pool_size = 512m 改為innodb_buffer_pool_size = 128m,再觀察一下看看還會不會出現

mysql老是掛 mysql頻繁掛掉

通常來說就是你記憶體小了,如果不能擴記憶體,就用swap。報錯資訊如下 2020 04 22t05 18 18.840523z 0 error innodb mmap 137428992 bytes failed errno 12 2020 04 22t05 18 18.840530z 0 erro...

mysql經常掛掉 mysql老是掛的問題

190629 10 44 21 error mysqld out of memory needed 128917504 bytes 190629 10 44 21 error mysqld out of memory needed 96681984 bytes 190629 10 44 23 inn...

安裝mysql總是說one 安裝MYSQL 5

mysql從4到5一直在用,一直沒寫過 安裝mysql 5.0.18 從mysql官方 拿到原始碼包 tar zxvf mysql standard 5.0.18 linux i686 glibc23.tar.gz cp r mysql standard 5.0.18 linux i686 glib...