mysql 无意重启 [Note] /usr/sbin/mysqld: Normal shutdown
情况:
今早发现,昨天下午安装的4台mysql服务器,突然出现,由于在shell窗口
(root@localhost:mysql.sock) [(none)]> 190102 18:12:16 mysqld_safe mysqld from pid file /home/data/mysqldata/3306/data/mysql3.pid ended
什么情况,mysql意外关闭,4个shell窗口都出现了同样的错误,还是有点紧张,于是赶紧找error日志
[mysql@mysql3 scripts]$ tail -f -n 200 /home/data/mysqldata/3306/log/mysql-error.log
2019-01-02 17:24:21 3654 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.6.15-log' socket: '/home/data/mysqldata/3306/mysql.sock' port: 3306 MySQL Community Server - (GPL)
2019-01-02 17:24:21 3654 [Note] Event Scheduler: scheduler thread started with id 1
2019-01-02 17:27:46 3654 [Warning] 'proxies_priv' entry '@ root@mysql1' ignored in --skip-name-resolve mode.
2019-01-02 18:12:05 3654 [Note] /usr/sbin/mysqld: Normal shutdown 2019-01-02 18:12:05 3654 [Note] Giving 3 client threads a chance to die gracefully
2019-01-02 18:12:05 3654 [Note] Event Scheduler: Killing the scheduler thread, thread id 1
2019-01-02 18:12:05 3654 [Note] Event Scheduler: Waiting for the scheduler thread to reply
2019-01-02 18:12:05 3654 [Note] Event Scheduler: Stopped
2019-01-02 18:12:05 3654 [Note] Event Scheduler: Purging the queue. 0 events
2019-01-02 18:12:05 3654 [Note] Shutting down slave threads
2019-01-02 18:12:15 3654 [Note] Forcefully disconnecting 1 remaining clients
2019-01-02 18:12:15 3654 [Warning] /usr/sbin/mysqld: Forcing close of thread 6 user: 'root' 2019-01-02 18:12:15 3654 [Note] Binlog end
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'partition'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'BLACKHOLE'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_METRICS'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_CMPMEM'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_CMP'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_LOCKS'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'INNODB_TRX'
2019-01-02 18:12:15 3654 [Note] Shutting down plugin 'InnoDB'
2019-01-02 18:12:15 3654 [Note] InnoDB: FTS optimize thread exiting.
2019-01-02 18:12:15 3654 [Note] InnoDB: Starting shutdown...
2019-01-02 18:12:16 3654 [Note] InnoDB: Shutdown completed; log sequence number 7120303
2019-01-02 18:12:16 3654 [Note] Shutting down plugin 'ARCHIVE'
2019-01-02 18:12:16 3654 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2019-01-02 18:12:16 3654 [Note] Shutting down plugin 'MRG_MYISAM'
2019-01-02 18:12:16 3654 [Note] Shutting down plugin 'MyISAM'
2019-01-02 18:12:16 3654 [Note] Shutting down plugin 'MEMORY'
2019-01-02 18:12:16 3654 [Note] Shutting down plugin 'CSV'
2019-01-02 18:12:16 3654 [Note] Shutting down plugin 'sha256_password'
2019-01-02 18:12:16 3654 [Note] Shutting down plugin 'mysql_old_password'
2019-01-02 18:12:16 3654 [Note] Shutting down plugin 'mysql_native_password'
2019-01-02 18:12:16 3654 [Note] Shutting down plugin 'binlog'
2019-01-02 18:12:16 3654 [Note] /usr/sbin/mysqld: Shutdown complete 190102 18:12:16 mysqld_safe mysqld from pid file /home/data/mysqldata/3306/data/mysql3.pid ended
190102 18:13:32 mysqld_safe Starting mysqld daemon with databases from /home/data/mysqldata//data
2019-01-02 18:13:34 4770 [Note] Plugin 'FEDERATED' is disabled.
如上面的日志标记所示,4台都是一样,很奇怪为什么会发现这样的问题
系统:cpu 4核,内存18g,磁盘hdd 200g
[root@mysql3 ~]# cat /etc/redhat-release
Kylin Linux release 3.3.1707 (Core)
mysql version:
Server version: 5.6.15-log MySQL Community Server - (GPL)
刚安装好的机器,不应该出现这样的问题,但是除了我,又没有谁来搞这个mysql,看了 linux的history
[root@mysql3 ~]# export HISTTIMEFORMAT='%F %T '
105 2019-01-02 15:55:27 whereis mysql
106 2019-01-02 15:55:31 which mysql
107 2019-01-02 15:57:08 vim /home/data/mysqldata/3306/my.cnf
108 2019-01-02 16:00:39 chown -R mysql:mysql /home/data/mysqldata/
109 2019-01-02 16:00:43 su - mysql
110 2019-01-03 09:00:19 history
111 2019-01-03 09:00:44 su - mysql
112 2019-01-03 10:06:49 cd /home/so
113 2019-01-03 10:06:54 cd /home/
没有相应时间的history
[root@mysql1 3306]# su - mysql
[mysql@mysql1 ~]$ history
66 2019-01-02 17:41:10 cd ../scripts/
67 2019-01-02 17:41:11 ll
68 2019-01-02 17:44:00 mysql -uroot -p -S /home/data/mysqldata/3306/mysql.sock
69 2019-01-03 08:38:13 ll
70 2019-01-03 08:38:15 cd ..
71 2019-01-03 08:38:17 cd 3306/log/
找不到问题,这时候开始网上找找,发现有一些人遇到这个问题
2019-01-02 18:09:56 3549 [Note] /usr/sbin/mysqld: Normal shutdown
但是回答的大部分都是,找找是否有history |grep mysqladmin 或者service mysqld stop等命令,看看是否手动或者其他的关闭了mysql
因为从error上看,是正常的关闭mysql服务
查看slow log也没有什么发现
还看到有一个帖子
有提到bug的帖子
https://bugs.mysql.com/bug.php?id=51081
由于还是找不到原因,寻思许久,不得解
这是问了一下开发同学 是否有重启过数据库,一问,才发现,他们悄悄的修改了my.cnf,然后同时重启了这4台机器。。。。。
哎,搞了半天,。。被开发的重启了,
这里警示了一个重要的问题,数据库就让dba团队来管控,开发只需要提出需求就好,而不是自己想当然的进行修改,,
按理说我们已经有 开发规范,管理规范,这种还是控制不住,毕竟。。。
mysql 无意重启 [Note] /usr/sbin/mysqld: Normal shutdown的更多相关文章
- mysql报错:/usr/sbin/mysqld:unknown variable 'default-character-set=utf8'
修改mysql的字符集时,为了将默认字符集设置为utf-8,便将/etc/my.cnf下[mysqld]加了一行 default-character-set=utf8, 但是在下次启动系统的时候,my ...
- 解决报错ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/run/mysqld/mysqld.pid (code
问题的由来 MySQL服务没有正常关机,是电脑没电后自动关机产生,记录一下排查过程 1.本以为是pid的问题,上网找了教程,解决不了,然后看日志看了网上各种说是数据库内存溢出 2021-03-12T1 ...
- Plugin 'FEDERATED' is disabled. /usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist
问题:在linux上安装mysql的时候出现Plugin ‘FEDERATED’ is disabled. /usr/sbin/mysqld: Table ‘mysql.plugin’ doesn’t ...
- mysql 错误解决:Plugin 'FEDERATED' is disabled. /usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist
今天安装完Mysql后,开启发生了错误: 1.打开相应文件夹,查看错误信息: 2.打开错误信息文件,查看错误原因是:Plugin 'FEDERATED' is disabled. /usr/sbin/ ...
- 报错:/usr/sbin/mysqld: Can't find file: './performance_schema/events_waits_summary_by_account_by_event_name.frm' (errno: 13 - Permission denied)
报错背景: Linux环境下安装MySQL数据库. 安装完成,数据库初始化,启动数据库时报错. 报错现象: -- :: [ERROR] Native table 'performance_schema ...
- MySQL 2003 [ERROR] /usr/sbin/mysqld: Incorrect key file for table './keyword_search/keyword.MYI'; try to repair it
今天对一个有四百多万数据的表增加一个功能时,当做数据插入时,显示没有插入,到Linux的log下面查看了发现下面这条错误信息 在stacOver上面找到这句: 存储引擎(MyISAM)支持修复表.你应 ...
- Can't connect to local MySQL Server throught socket '/var/run/mysqld/mysqld.sock'(2)
www.iwangzheng.com 由于之前调整了/etc/mysql/my.cnf试图修复数据库不能存中文的问题,这个问题没解决,以至于数据库连接不上了. tail -f /var/log/mys ...
- Running MYSQL 5.7 By Bash On Ubuntu On Windows:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
root@PC-RENGUOQIANG:/usr/sbin# /etc/init.d/mysql start * Starting MySQL database server mysqld [ OK ...
- 解决:error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
在使用 deamon@deamon-H55M-S2:/usr/bin$ mysqladmin -u root -p shutdown 关闭MySQL之后试图通过: deamon@deamon-H55M ...
随机推荐
- 配置mybatis-config.xml出现过很诡异的现象
1 首先得保证包的导入正确 2 然后如果把mybatis-config.xml放在src的某个文件夹下,最后能够build path 3 之后一直报 Archive for required libr ...
- js 小复习1
1.数组 增删改查 , , , , ]; // arr.push(18); // 添加数组后面 更改长度 // arr.unshift(12); // 添加数组前面 // arr.pop(); // ...
- 51nod 1270 dp
http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1270 简单的线性dp,最近狂刷水题真的是...药丸 差值最大得话要么是峰 ...
- SpringMVC4整合CXF发布WebService
SpringMVC4整合CXF发布WebService版本:SpringMVC 4.1.6,CXF 3.1.0项目管理:apache-maven-3.3.3 pom.xml <project x ...
- 理解RESTful风格(转)
原文链接:http://www.ruanyifeng.com/blog/2011/09/restful.html 越来越多的人开始意识到,网站即软件,而且是一种新型的软件. 这种"互联网软件 ...
- DRF 的视图,路由和渲染器
DRF 的视图,路由和渲染器 1 视图 简单的增删改查 : ModelViewSet; 复杂的操作使用APIView 和 GenericViewSet APIView(View) class Home ...
- 网站 安全 ---- 常见的 web 攻击
网站 安全 ---- 常见的 web 攻击 1 sql 注入(常用的攻击性)(django的orm是做过sql防护处理的) 危害: 非法读取,篡改,删除数据库中的数据 盗取用户的各类敏感信息.获取利益 ...
- 使用 nvm 管理多版本 node
首先,使用下面的命令来安装 nvm $ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | b ...
- 类里边的构造函数可以被private修饰,在类的内部创建对象。利用这种特性创建单类模式
- 我所常用的git命令
说明公司向用git来管理项目的代码,我以前只是在eclipse中使用菜单来操作git,现在,学习一下命令,这样也不用安装各种git客户端软件了.git安装在官网上下载git,安装完成之后,在命令行中输 ...