所以,几周前,我在墨尔本带来了一台新的CentOS专用服务器,不过,除了我得到的攻击者数量之外,MySQL数据库似乎也有问题,或者是一个正在使用的软件,因为它一直在崩溃和干燥。
我已经翻阅过原木,不知道它会崩溃的任何原因,但我想知道是否有人能帮我解决这个问题。
日志文件的最后一部分:
150512 06:15:02 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
150512 06:20:02 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150512 6:20:02 [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.
150512 6:20:02 [Note] Plugin 'FEDERATED' is disabled.
150512 6:20:02 InnoDB: The InnoDB memory heap is disabled
150512 6:20:02 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150512 6:20:02 InnoDB: Compressed tables use zlib 1.2.3
150512 6:20:02 InnoDB: Using Linux native AIO
150512 6:20:02 InnoDB: Initializing buffer pool, size = 128.0M
150512 6:20:02 InnoDB: Completed initialization of buffer pool
150512 6:20:02 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
150512 6:20:02 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
150512 06:20:02 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
150512 06:25:02 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150512 6:25:02 [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.
150512 6:25:02 [Note] Plugin 'FEDERATED' is disabled.
150512 6:25:02 InnoDB: The InnoDB memory heap is disabled
150512 6:25:02 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150512 6:25:02 InnoDB: Compressed tables use zlib 1.2.3
150512 6:25:02 InnoDB: Using Linux native AIO
150512 6:25:02 InnoDB: Initializing buffer pool, size = 128.0M
150512 6:25:02 InnoDB: Completed initialization of buffer pool
150512 6:25:02 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
150512 6:25:02 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
150512 06:25:03 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
150512 06:30:01 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150512 6:30:01 [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.
150512 6:30:01 [Note] Plugin 'FEDERATED' is disabled.
150512 6:30:01 InnoDB: The InnoDB memory heap is disabled
150512 6:30:01 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150512 6:30:01 InnoDB: Compressed tables use zlib 1.2.3
150512 6:30:01 InnoDB: Using Linux native AIO
150512 6:30:01 InnoDB: Initializing buffer pool, size = 128.0M
150512 6:30:01 InnoDB: Completed initialization of buffer pool
150512 6:30:01 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
150512 6:30:01 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
150512 6:30:01 InnoDB: Waiting for the background threads to start
150512 6:30:02 InnoDB: 5.5.41 started; log sequence number 68534366
150512 6:30:02 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
150512 6:30:02 [Note] - '0.0.0.0' resolves to '0.0.0.0';
150512 6:30:02 [Note] Server socket created on IP: '0.0.0.0'.
150512 6:30:02 [Note] Event Scheduler: Loaded 0 events
150512 6:30:02 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.41' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL) by Remi
150512 06:42:37 mysqld_safe Number of processes running now: 0
150512 06:42:37 mysqld_safe mysqld restarted
150512 6:42:37 [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.
150512 6:42:37 [Note] Plugin 'FEDERATED' is disabled.
150512 6:42:37 InnoDB: The InnoDB memory heap is disabled
150512 6:42:37 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150512 6:42:37 InnoDB: Compressed tables use zlib 1.2.3
150512 6:42:37 InnoDB: Using Linux native AIO
150512 6:42:37 InnoDB: Initializing buffer pool, size = 128.0M
150512 6:42:37 InnoDB: Completed initialization of buffer pool
150512 6:42:37 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
150512 6:42:37 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
150512 6:42:37 InnoDB: Waiting for the background threads to start
150512 06:42:37 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
150512 06:45:02 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150512 6:45:02 [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.
150512 6:45:02 [Note] Plugin 'FEDERATED' is disabled.
150512 6:45:02 InnoDB: The InnoDB memory heap is disabled
150512 6:45:02 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150512 6:45:02 InnoDB: Compressed tables use zlib 1.2.3
150512 6:45:02 InnoDB: Using Linux native AIO
150512 6:45:02 InnoDB: Initializing buffer pool, size = 128.0M
150512 6:45:02 InnoDB: Completed initialization of buffer pool
150512 6:45:02 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
150512 6:45:02 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
150512 6:45:02 InnoDB: Waiting for the background threads to start
150512 6:45:03 InnoDB: 5.5.41 started; log sequence number 68578838
150512 6:45:03 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
150512 6:45:03 [Note] - '0.0.0.0' resolves to '0.0.0.0';
150512 6:45:03 [Note] Server socket created on IP: '0.0.0.0'.
150512 6:45:03 [Note] Event Scheduler: Loaded 0 events
150512 6:45:03 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.41' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL \服务器正在运行以下操作:
CentOS 6 vestaCP MySQL5.5.4邮件服务器
发布于 2015-05-25 17:14:16
看起来你的日志被破坏了。尝试重新创建InnoDB日志文件,方法是将现有的ib_logfile(s)移开并重新启动MySQL。如果这样做不起作用,您可能会有一些数据损坏。
发布于 2019-10-01 13:29:05
这是个老问题,但这个答案对其他人来说是有用的.
“突然”MySQL/MariaDB崩溃的一个常见原因是内核OOM杀手 --基本上,如果机器缺少RAM,内核就会扼杀最消耗内存的进程。
内核OOM杀手是部分可配置的,因此应该能够“保护”一个重要的过程。然而,真正的解决办法是理解机器为什么面临内存不足的情况;最常见的原因是:
发布于 2015-05-12 14:06:55
InnoDB: Database was not shut down normally!
InnoDB: Starting crash recoverycron或logrotation (/etc/logrotate.d/mysql)。cat /proc/swaps在这种情况下是否考虑到添加交换的情况innodb_force_recovery,则转储损坏的数据库。mysqldump -u root -p –all-databases > all_dbs.sqlmkdir /var/lib/ib_files/ mv /var/lib/mysql/ib* /var/lib/ib_files/mysql -u root -p < all_dbs.sql还原数据库。mysqlcheck –all-databases –repairservice mysql restarthttps://serverfault.com/questions/691390
复制相似问题