2016-03-01 40 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