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

查看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

你可能感兴趣的:(Linux,MySQL)