mysql 总是莫名其妙的关闭

DavidYun 发布于 2016/01/10 12:23
阅读 2K+
收藏 0

CentOS

MYSQL 

5.6不知道为什么,MYSQL总是莫名其妙的被关闭,然后网页提示

Connect Error (1045)Access denied for user 'root'@'172.0.0.1' (using password: YES)

下面是日志:

2016-01-09 20:01:02 13952 [Note] /usr/sbin/mysqld: Normal shutdown


2016-01-09 20:01:02 13952 [Note] Giving 0 client threads a chance to die gracefully
2016-01-09 20:01:02 13952 [Note] Shutting down slave threads
2016-01-09 20:01:02 13952 [Note] Forcefully disconnecting 0 remaining clients
2016-01-09 20:01:02 13952 [Note] Binlog end
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'partition'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'ARCHIVE'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'BLACKHOLE'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_METRICS'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_CMPMEM'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_CMP'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_LOCKS'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'INNODB_TRX'
2016-01-09 20:01:02 13952 [Note] Shutting down plugin 'InnoDB'
2016-01-09 20:01:02 13952 [Note] InnoDB: FTS optimize thread exiting.
2016-01-09 20:01:02 13952 [Note] InnoDB: Starting shutdown...
2016-01-09 20:01:04 13952 [Note] InnoDB: Shutdown completed; log sequence number 183335194
2016-01-09 20:01:04 13952 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2016-01-09 20:01:04 13952 [Note] Shutting down plugin 'CSV'
2016-01-09 20:01:04 13952 [Note] Shutting down plugin 'MEMORY'
2016-01-09 20:01:04 13952 [Note] Shutting down plugin 'MRG_MYISAM'
2016-01-09 20:01:04 13952 [Note] Shutting down plugin 'MyISAM'
2016-01-09 20:01:04 13952 [Note] Shutting down plugin 'sha256_password'
2016-01-09 20:01:04 13952 [Note] Shutting down plugin 'mysql_old_password'
2016-01-09 20:01:04 13952 [Note] Shutting down plugin 'mysql_native_password'
2016-01-09 20:01:04 13952 [Note] Shutting down plugin 'binlog'
2016-01-09 20:01:04 13952 [Note] /usr/sbin/mysqld: Shutdown complete


160109 20:01:04 mysqld_safe mysqld from pid file /data/lib/mysql/VM_45_56_centos.pid ended
160109 20:01:04 mysqld_safe Starting mysqld daemon with databases from /data/lib/mysql
2016-01-09 20:01:05 21981 [Note] Plugin 'FEDERATED' is disabled.
2016-01-09 20:01:05 21981 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-01-09 20:01:05 21981 [Note] InnoDB: The InnoDB memory heap is disabled
2016-01-09 20:01:05 21981 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-01-09 20:01:05 21981 [Note] InnoDB: Memory barrier is not used
2016-01-09 20:01:05 21981 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-01-09 20:01:05 21981 [Note] InnoDB: Using Linux native AIO
2016-01-09 20:01:05 21981 [Note] InnoDB: Not using CPU crc32 instructions
2016-01-09 20:01:05 21981 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-01-09 20:01:05 21981 [Note] InnoDB: Completed initialization of buffer pool
2016-01-09 20:01:05 21981 [Note] InnoDB: Highest supported file format is Barracuda.
2016-01-09 20:01:05 21981 [Note] InnoDB: 128 rollback segment(s) are active.
2016-01-09 20:01:05 21981 [Note] InnoDB: Waiting for purge to start
2016-01-09 20:01:05 21981 [Note] InnoDB: 5.6.21 started; log sequence number 183335194
2016-01-09 20:01:05 21981 [Note] Server hostname (bind-address): '*'; port: 3306
2016-01-09 20:01:05 21981 [Note] IPv6 is not available.
2016-01-09 20:01:05 21981 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
2016-01-09 20:01:05 21981 [Note] Server socket created on IP: '0.0.0.0'.
2016-01-09 20:01:05 21981 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.6.21'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL)

加载中
0
DavidYun
DavidYun
没人解决么
0
kakai
kakai
机器硬件配置太低会使mysql自动关闭
kakai
kakai
回复 @DavidYun : 我用的阿里云 centos也没什么问题(java游戏服务器,业务逻辑为HTTP通信,还有个聊天的Socket挂在上面),内存4G,CPU什么配置?经常查看一下硬件资源占用情况,看看是否是满负荷运行
DavidYun
DavidYun
另外怎么能知道是什么引起自动关闭的么
DavidYun
DavidYun
使用的腾讯云服务器 内存4G 就跑一个PHP 的项目
0
mark35
mark35

使用mysql会遇到无尽的莫名其妙的问题

会不会因为CPU占用过高被母鸡自动kill了?

0
宏哥
宏哥

引用来自“mark35”的评论

使用mysql会遇到无尽的莫名其妙的问题

会不会因为CPU占用过高被母鸡自动kill了?

我宁可放弃做软件行业

都绝不用mysql

实在是无穷无尽

mark35
mark35
我是尽量不用mysql,绝不碰java(虽然也不会哈)
DavidYun
DavidYun
关键也没什么错误日志,我是找都找不到什么原因,泪奔
0
p
pxllong

你用的ubuntu么?apt-get装的有个切log的lograte 记得会重启mysql.

看日志时间应该不是

DavidYun
DavidYun
用的 centos
0
开源中国首席公关
开源中国首席公关
居然出现mysql黑... 天理难容...
0
风萧雨瑟
风萧雨瑟

一年前的问题了,楼主的问题解决了吗?最近也碰上这个情况了。有两台机器,32核,128G内存。配置上边不是问题,看innodb status  内存还有很多剩余。但就是隔几天就挂一次,最频烦的是几个小时就挂一次。系统是centos6.6。开始怀疑是6.6内核bug原因,后来系统升级到了6.8.内核也升级了一个小版本。但问题依旧。

日志和你贴上来的差不多。显示就是正常关闭。

风萧雨瑟
风萧雨瑟
回复 @furple : 您好furple ,关于你说的内核bug的问题,我之前已经关注到,已经将centos6.6系统升级到6.8,并且将有问题的内核版本从2.6.32-504.el6.x86_64升级到了2.6.32-642.13.1.el6.x86_64。但问题依旧。
f
furple
https://www.infoq.com/news/2015/05/redhat-futex 看看是不是这个问题
返回顶部
顶部