AWS Micro Instance - MySQL在Wordpress安装中始终失败

时间:2016-03-01 06:43:14

标签: mysql wordpress amazon-web-services

我有一个默认设置的Ubuntu微实例。事实上,这个实例与我之前和之后创建的其他8个用户托管网站相同。

这个属于一个教会,不幸的是,它一直让它的MySql服务器进入天堂!我不知道如何对此进行排序,因为mysql.err日志显示:

160301  5:03:40 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in$
160301  5:03:40 [Note] Plugin 'FEDERATED' is disabled.
160301  5:03:40 InnoDB: The InnoDB memory heap is disabled
160301  5:03:40 InnoDB: Mutexes and rw_locks use GCC atomic builtins
160301  5:03:40 InnoDB: Compressed tables use zlib 1.2.8
160301  5:03:40 InnoDB: Using Linux native AIO
160301  5:03:40 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
160301  5:03:40 InnoDB: Completed initialization of buffer pool
160301  5:03:40 InnoDB: Fatal error: cannot allocate memory for the buffer pool
160301  5:03:40 [ERROR] Plugin 'InnoDB' init function returned error.
160301  5:03:40 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
160301  5:03:40 [ERROR] Unknown/unsupported storage engine: InnoDB
160301  5:03:40 [ERROR] Aborting

160301  5:03:40 [Note] /usr/sbin/mysqld: Shutdown complete

这告诉我它无法分配缓冲池所需的128MB

但是,我的free -m显示有足够的​​内存(我还设置了2GB交换)。

ubuntu@ip-xxx-xxx-xxx-xxx:/var/log/mysql$ free -m
             total       used       free     shared    buffers     cached
Mem:           992        634        358         54         76        308
-/+ buffers/cache:        249        742
Swap:         2047          0       2047

任何建议都表示赞赏!

1 个答案:

答案 0 :(得分:1)

看起来在启动过程中没有足够的内存可供分配。

将此添加到您的/etc/mysql/my.cnf

innodb_buffer_pool_size = 20M
相关问题