本文转载:http://blog.lihuanliang.com/?p=46
mysql – 启动错误InnoDB: mmap(XXXX bytes) failed; errno 12
重启错误提示
[root@XXXXXXX/]# /etc/init.d/mysqld start
Starting MySQL. ERROR! The server quit without updating PID file (/var/mysql/data/XXXX.pid).
[root@XXXXXXX/]# /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/XXXX.pid).
mysql要占用内存的时候 物理内存不够用导致的 所有 vim /etc/my.cnf
[inonodb]
innodb_buffer_pool_size=64MB #把这个数值改小 高版本的默认是128MB
————————————————
原文链接:https://blog.csdn.net/lihuanliang765142602/article/details/78029340