MariaDB - 丢失数据库连接

时间:2016-12-08 16:25:55

标签: google-compute-engine mariadb

我是Google Compute的新手,但不是CentOS。我使用Google的CentOS 7.2版本创建了一个实例,并且遇到了MariaDB的问题,它每天关闭一两次并且无法自动启动。还有其他人遇到过这个问题吗?

我的数据库日志:

161203 19:13:44 InnoDB: Initializing buffer pool, size = 512.0M
InnoDB: mmap(551026688 bytes) failed; errno 12
161203 19:13:44 InnoDB: Completed initialization of buffer pool
161203 19:13:44 InnoDB: Fatal error: cannot allocate memory for the buffer pool
161203 19:13:44 [ERROR] Plugin 'InnoDB' init function returned error.
161203 19:13:44 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
161203 19:13:44 [ERROR] mysqld: Out of memory (Needed 128917504 bytes)
161203 19:13:44 [ERROR] mysqld: Out of memory (Needed 96681984 bytes)
161203 19:13:44 [Note] Plugin 'FEEDBACK' is disabled.
161203 19:13:44 [ERROR] Unknown/unsupported storage engine: InnoDB
161203 19:13:44 [ERROR] Aborting

我尝试的事情:

  • 将所有表格转换为InnoDB引擎
  • 在我的httpd.conf
  • 中添加了 MaxClients 128
  • innodb-buffer-pool-size = 512MB 添加到my.cnf文件的[mysqld]部分
  • 添加了RAM(因为它放弃了额外的RAM,因为它似乎没有帮助)

这是我在这里的第一篇文章,所以请放轻松。

谢谢,

斯科特

0 个答案:

没有答案
相关问题