weijer 发表于 2019-6-16 10:32:29

求助Mysql异常挂掉

> lnmp status

报错:
lnmp ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exit

日志:

2019-06-16 08:46:35 18572 Plugin 'FEDERATED' is disabled.
2019-06-16 08:46:35 18572 InnoDB: Using atomics to ref count buffer pool pages
2019-06-16 08:46:35 18572 InnoDB: The InnoDB memory heap is disabled
2019-06-16 08:46:35 18572 InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-06-16 08:46:35 18572 InnoDB: Memory barrier is not used
2019-06-16 08:46:35 18572 InnoDB: Compressed tables use zlib 1.2.3
2019-06-16 08:46:35 18572 InnoDB: Using Linux native AIO
2019-06-16 08:46:35 18572 InnoDB: Using CPU crc32 instructions
2019-06-16 08:46:35 18572 InnoDB: Initializing buffer pool, size = 256.0M
2019-06-16 08:46:35 18572 InnoDB: Completed initialization of buffer pool
2019-06-16 08:46:35 18572 InnoDB: Highest supported file format is Barracuda.
2019-06-16 08:46:35 18572 InnoDB: The log sequence numbers 927262583 and 927262583 in ibdata files do not match the log sequence number 927263930 in the ib_logfiles!
2019-06-16 08:46:35 18572 InnoDB: Database was not shutdown normally!
2019-06-16 08:46:35 18572 InnoDB: Starting crash recovery.
2019-06-16 08:46:35 18572 InnoDB: Reading tablespace information from the .ibd files...
2019-06-16 08:46:36 18572 InnoDB: Restoring possible half-written data pages
2019-06-16 08:46:36 18572 InnoDB: from the doublewrite buffer...
InnoDB: Last MySQL binlog file position 0 12379, file name mysql-bin.000139
2019-06-16 08:46:36 18572 InnoDB: 128 rollback segment(s) are active.
2019-06-16 08:46:36 18572 InnoDB: Waiting for purge to start
2019-06-16 08:46:36 18572 InnoDB: 5.6.40 started; log sequence number 927263930
2019-06-16 08:46:36 18572 Recovering after a crash using mysql-bin
2019-06-16 08:46:36 18572 Starting crash recovery...
2019-06-16 08:46:36 18572 Crash recovery finished.
2019-06-16 08:46:36 18572 Server hostname (bind-address): '*'; port: 3306
2019-06-16 08:46:36 18572 IPv6 is available.
2019-06-16 08:46:36 18572    - '::' resolves to '::';
2019-06-16 08:46:36 18572 Server socket created on IP: '::'.
2019-06-16 08:46:36 18572 Event Scheduler: Loaded 0 events
2019-06-16 08:46:36 18572 /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.6.40-log'socket: '/tmp/mysql.sock'port: 3306Source distribution


licess 发表于 2019-6-16 12:58:52

上面日志中没有有用信息
mysql挂掉可能是系统内存不足,你机器什么配置?

weijer 发表于 2019-6-16 13:51:15

# cat /proc/cpuinfo | grep name
model name        : Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz
model name        : Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz


# cat /proc/meminfo | head -4
MemTotal:      3881688 kB
MemFree:          326896 kB
MemAvailable:    1556488 kB
Buffers:          210676 kB
页: [1]
查看完整版本: 求助Mysql异常挂掉