Упала База, сервис не запускается
Упала База, сервис не запускается
Доброго времени суток.
Ткая у меня неожиданная проблема - ночью все работало хорошо, а сегодня БД не поднимается
log
140912 13:34:26 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140912 13:34:26 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
140912 13:34:26 [Note] Plugin 'FEDERATED' is disabled.
140912 13:34:26 InnoDB: The InnoDB memory heap is disabled
140912 13:34:26 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140912 13:34:26 InnoDB: Compressed tables use zlib 1.2.3
140912 13:34:26 InnoDB: Using Linux native AIO
140912 13:34:26 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
140912 13:34:26 InnoDB: Completed initialization of buffer pool
140912 13:34:26 InnoDB: Fatal error: cannot allocate memory for the buffer pool
140912 13:34:26 [ERROR] Plugin 'InnoDB' init function returned error.
140912 13:34:26 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140912 13:34:26 [ERROR] Unknown/unsupported storage engine: InnoDB
140912 13:34:26 [ERROR] Aborting
140912 13:34:26 [Note] /usr/libexec/mysqld: Shutdown complete
140912 13:34:26 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
Подскажите пожалуйста как устранить ошибки и поднять сревер
Ткая у меня неожиданная проблема - ночью все работало хорошо, а сегодня БД не поднимается
log
140912 13:34:26 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140912 13:34:26 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
140912 13:34:26 [Note] Plugin 'FEDERATED' is disabled.
140912 13:34:26 InnoDB: The InnoDB memory heap is disabled
140912 13:34:26 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140912 13:34:26 InnoDB: Compressed tables use zlib 1.2.3
140912 13:34:26 InnoDB: Using Linux native AIO
140912 13:34:26 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
140912 13:34:26 InnoDB: Completed initialization of buffer pool
140912 13:34:26 InnoDB: Fatal error: cannot allocate memory for the buffer pool
140912 13:34:26 [ERROR] Plugin 'InnoDB' init function returned error.
140912 13:34:26 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140912 13:34:26 [ERROR] Unknown/unsupported storage engine: InnoDB
140912 13:34:26 [ERROR] Aborting
140912 13:34:26 [Note] /usr/libexec/mysqld: Shutdown complete
140912 13:34:26 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
Подскажите пожалуйста как устранить ошибки и поднять сревер
Re: Упала База, сервис не запускается
Ничего не помогает из того что описано на форуме....
CentOS
# /etc/init.d/mysqld start
MySQL Daemon failed to start.
Запускается mysqld: [СБОЙ ]
Последняя запись в логе - выше постом.
После "шаманства" с настройками
следующий лог
140912 14:48:48 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140912 14:48:48 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
140912 14:48:48 [Note] Plugin 'FEDERATED' is disabled.
140912 14:48:48 InnoDB: The InnoDB memory heap is disabled
140912 14:48:48 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140912 14:48:48 InnoDB: Compressed tables use zlib 1.2.3
140912 14:48:48 InnoDB: Using Linux native AIO
140912 14:48:48 InnoDB: Unrecognized value normal for innodb_flush_method
140912 14:48:48 [ERROR] Plugin 'InnoDB' init function returned error.
140912 14:48:48 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140912 14:48:48 [ERROR] Unknown/unsupported storage engine: InnoDB
140912 14:48:48 [ERROR] Aborting
140912 14:48:48 [Note] /usr/libexec/mysqld: Shutdown complete
140912 14:48:48 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
CentOS
# /etc/init.d/mysqld start
MySQL Daemon failed to start.
Запускается mysqld: [СБОЙ ]
Последняя запись в логе - выше постом.
После "шаманства" с настройками
следующий лог
140912 14:48:48 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140912 14:48:48 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
140912 14:48:48 [Note] Plugin 'FEDERATED' is disabled.
140912 14:48:48 InnoDB: The InnoDB memory heap is disabled
140912 14:48:48 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140912 14:48:48 InnoDB: Compressed tables use zlib 1.2.3
140912 14:48:48 InnoDB: Using Linux native AIO
140912 14:48:48 InnoDB: Unrecognized value normal for innodb_flush_method
140912 14:48:48 [ERROR] Plugin 'InnoDB' init function returned error.
140912 14:48:48 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140912 14:48:48 [ERROR] Unknown/unsupported storage engine: InnoDB
140912 14:48:48 [ERROR] Aborting
140912 14:48:48 [Note] /usr/libexec/mysqld: Shutdown complete
140912 14:48:48 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
Re: Упала База, сервис не запускается
В общем понял что мне с этим не разобраться, подскажите пожалуйста, если возможность переставить mysql полностью и восстановить базы данных из бэкапа? И как это сделать - из консоли ничего не проиходит - постоянно "выполняется действие, подождите"
-
- Posts: 14
- Joined: Tue Sep 02, 2014 11:25 am
Re: Упала База, сервис не запускается
Выполни из командной строки
Есть вероятность что база восстановится, у меня лично базы часто крашились, тебе нужно правильно настроить MySQL, пот читай в конце:viewtopic.php?f=32&t=3852&start=100 и учись пользоваться поиском!
Code: Select all
mysql check -u root -p ПАРОЛЬ -A repair