2016-03-01 69 views
0

我有一个默认设置的Ubuntu微型实例。事实上,这个实例与我之前和之后创建的其他8个其他的主机一样,都是为了托管Wordpress网站。AWS微型实例 - MySQL在Wordpress安装中保持失败

这一个属于一个教会,不幸的是,它一直保持其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的swap)。

[email protected]:/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

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

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

innodb_buffer_pool_size = 20M