MySQL报错Initializing buffer pool, size = 128.0M InnoDB: mmap(137363456 bytes) failed; errno 12

版权声明:本文供经验交流,欢迎转载 https://blog.csdn.net/qq_31708763/article/details/86505945

查看MySQL的错误日志,默认是/var/lib/mysql/your username.err

报错内容:

2019-01-16 10:22:48 39795 [Note] InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
2019-01-16 10:22:48 39795 [ERROR] InnoDB: Cannot allocate memory for the buffer pool

解决方法:修改innodb_buffer_pool_size 或者加大swap分区空间https://blog.csdn.net/qq_31708763/article/details/86498571

猜你喜欢

转载自blog.csdn.net/qq_31708763/article/details/86505945