呆子 发表于 2020-4-12 08:50:05

mysql 频繁停止

本帖最后由 呆子 于 2020-4-12 08:51 编辑

服务器为do的双核2g
网站程序wp
nginx/1.9.9
lnmp版本为1.5
sql版本默认
php版本7.2.6
目前先临时使用的定时脚本 检查mysql状态



licess 发表于 2020-4-12 12:45:25

InnoDB: Unable to lock /usr/local/mysql/var/ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
2004125:55:43InnoDB: Unable to open the first data file
InnoDB: Error in opening /usr/local/mysql/var/ibdata1
2004125:55:43InnoDB: Operating system error number 11 in a file operation.
InnoDB: Error number 11 means 'Resource temporarily unavailable'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/ ... em-error-codes.html
2004125:55:43 InnoDB: Could not open or create data files.
2004125:55:43 InnoDB: If you tried to add new data files, and it failed here,
2004125:55:43 InnoDB: you should now edit innodb_data_file_path in my.cnf back
2004125:55:43 InnoDB: to what it was, and remove the new ibdata files InnoDB created
2004125:55:43 InnoDB: in this failed attempt. InnoDB only wrote those files full of
2004125:55:43 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
2004125:55:43 InnoDB: remove old data files which contain your precious data!
2004125:55:43 Plugin 'InnoDB' init function returned error.
2004125:55:43 Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2004125:55:43 Unknown/unsupported storage engine: InnoDB
2004125:55:43 Aborting
按日志信息的话估计可能mysql已经启动或未被完整正确关闭,mysqld进程一直在占用,而无法启动
kill 进程pid再启动


频繁重启估计可能内存不够用了,你看一下系统日志

呆子 发表于 2020-4-12 16:29:21

重启我是用脚本自动重启的   目前尝试建立了一个4g的SWAP稳定了有6个多小时了我在观察下   谢谢军哥
页: [1]
查看完整版本: mysql 频繁停止