用的Linode的一核 1G的最低配置VPS
装的mysql5.6
以前装2-3个wordpress网站都没有问题,
最近这个vps只装了一个网站,不过配了woocommerce,
结果连续2天收到主机的警告,说cpu达到98%,然后登陆一看,mysql也自动停止了,
这是mysql慢日志,请部一下是什么原因。谢谢。
/www/server/mysql/bin/mysqld, Version: 5.6.50-log (Source distribution). started with:
Tcp port: 3306 Unix socket: /tmp/mysql.sock
Time Id Command Argument
/www/server/mysql/bin/mysqld, Version: 5.6.50-log (Source distribution). started with:
Tcp port: 3306 Unix socket: /tmp/mysql.sock
Time Id Command Argument
/www/server/mysql/bin/mysqld, Version: 5.6.50-log (Source distribution). started with:
Tcp port: 3306 Unix socket: /tmp/mysql.sock
Time Id Command Argument
/www/server/mysql/bin/mysqld, Version: 5.6.50-log (Source distribution). started with:
Tcp port: 3306 Unix socket: /tmp/mysql.sock
Time Id Command Argument
/www/server/mysql/bin/mysqld, Version: 5.6.50-log (Source distribution). started with:
Tcp port: 3306 Unix socket: /tmp/mysql.sock
Time Id Command Argument
/www/server/mysql/bin/mysqld, Version: 5.6.50-log (Source distribution). started with:
Tcp port: 3306 Unix socket: /tmp/mysql.sock
Time Id Command Argument
这是日志:
- 2023-04-10 12:12:11 7997 [Note] InnoDB: Database was not shutdown normally!
- 2023-04-10 12:12:11 7997 [Note] InnoDB: Starting crash recovery.
- 2023-04-10 12:12:11 7997 [Note] InnoDB: Reading tablespace information from the .ibd files...
- 2023-04-10 12:12:11 7997 [Note] InnoDB: Restoring possible half-written data pages
- 2023-04-10 12:12:11 7997 [Note] InnoDB: from the doublewrite buffer...
- InnoDB: Last MySQL binlog file position 0 13753006, file name mysql-bin.000007
- 2023-04-10 12:12:11 7997 [Note] InnoDB: 128 rollback segment(s) are active.
- 2023-04-10 12:12:11 7997 [Note] InnoDB: Waiting for purge to start
- 2023-04-10 12:12:11 7997 [Note] InnoDB: 5.6.50 started; log sequence number 29984848
- 2023-04-10 12:12:11 7997 [Note] Recovering after a crash using mysql-bin
- 2023-04-10 12:12:11 7997 [Note] Starting crash recovery...
- 2023-04-10 12:12:11 7997 [Note] Crash recovery finished.
- 2023-04-10 12:12:11 7997 [Note] RSA private key file not found: /www/server/data//private_key.pem. Some authentication plugins will not work.
- 2023-04-10 12:12:11 7997 [Note] RSA public key file not found: /www/server/data//public_key.pem. Some authentication plugins will not work.
- 2023-04-10 12:12:11 7997 [Note] Server hostname (bind-address): '*'; port: 3306
- 2023-04-10 12:12:11 7997 [Note] IPv6 is available.
- 2023-04-10 12:12:11 7997 [Note] - '::' resolves to '::';
- 2023-04-10 12:12:11 7997 [Note] Server socket created on IP: '::'.
- 2023-04-10 12:12:11 7997 [Note] Event Scheduler: Loaded 0 events
- 2023-04-10 12:12:11 7997 [Note] /www/server/mysql/bin/mysqld: ready for connections.
- Version: '5.6.50-log' socket: '/tmp/mysql.sock' port: 3306 Source distribution
复制代码
|
|