Was ist zu tun, wenn ich "mysqld dead, aber subsys locked" in meiner amazon-ec2-micro-instance?

Habe ich eine Amazon ec2 micro-Instanz, hält eine WordPress-Website. Seit gestern ist meine mysql-db zu halten Absturz zu sagen:

[ec2-user@ip-xxx-xx-xx-xxx ~]$ sudo service mysqld status
mysqld dead but subsys locked

Versuchte ich einen Neustart des mysqld aber nach jeden 5 Minuten, es stürzt immer ab mit der gleichen Meldung - "Error establishing a database connection"

Dies ist, was mein DB-log-Datei liest -

160123 05:44:41 mysqld_safe mysqld restarted
160123  5:44:43 [Note] /usr/libexec/mysql55/mysqld (mysqld 5.5.46) starting as process 7928 ...
160123  5:44:44 [Note] Plugin 'FEDERATED' is disabled.
160123  5:44:46 InnoDB: The InnoDB memory heap is disabled
160123  5:44:46 InnoDB: Mutexes and rw_locks use GCC atomic builtins
160123  5:44:46 InnoDB: Compressed tables use zlib 1.2.8
160123  5:44:46 InnoDB: Using Linux native AIO
160123  5:44:46 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
160123  5:44:46 InnoDB: Completed initialization of buffer pool
160123  5:44:46 InnoDB: Fatal error: cannot allocate memory for the buffer pool
160123  5:44:46 [ERROR] Plugin 'InnoDB' init function returned error.
160123  5:44:46 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
160123  5:44:46 [ERROR] Unknown/unsupported storage engine: InnoDB
160123  5:44:46 [ERROR] Aborting    
160123  5:44:46 [Note] /usr/libexec/mysql55/mysqld: Shutdown complete
160123 05:44:46 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

Die gemeinsame Lösung, die gefunden wird, wenn ich Gegoogelt, um eine Lösung für das Problem - mysqld dead but subsys locked, ist das erstellen einer SwapDatei. Ich habe genau so, wie die meisten die Lösung vorschlagen, aber da bin ich nicht versiert mit dem UNIX -, ich weiß nicht, was ich getan habe richtig ist oder nicht.

Was ist zu tun, wenn ich

Oder gibt es irgendeine andere Lösung für dieses Problem. Bitte helfen.

InformationsquelleAutor Arun Antony | 2016-01-23
Schreibe einen Kommentar