###手动修改时间(大于error.log最大的time)
[root@localhost ~]# date -s 12:00
Tue Dec 412:00:00 CST 2018###查看error日志,正常关闭
[root@localhost ~]# tail -f /var/log/mysql/error.log2018-12-04T10:00:07.198780+08:000 [Note] Shutting down plugin 'INNODB_LOCKS'2018-12-04T10:00:07.198783+08:000 [Note] Shutting down plugin 'INNODB_TRX'2018-12-04T10:00:07.198786+08:000 [Note] Shutting down plugin 'InnoDB'2018-12-04T10:00:07.198925+08:000 [Note] InnoDB: FTS optimize thread exiting.
2018-12-04T10:00:07.199255+08:000 [Note] InnoDB: Starting shutdown...
2018-12-04T10:01:15.036504+08:000 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
2018-12-04T10:02:22.191904+08:000 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
2018-12-04T10:03:32.160278+08:000 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
2018-12-04T12:00:00.032698+08:000 [Note] InnoDB: MySQL has requested a very fast shutdown without flushing the InnoDB buffer pool to data files. At the next mysqld startup InnoDB will do a crash recovery!
2018-12-04T12:00:00.847336+08:000 [Note] InnoDB: Shutdown completed; log sequence number 02018-12-04T12:00:00.849656+08:000 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"2018-12-04T12:00:00.849693+08:000 [Note] Shutting down plugin 'MEMORY'2018-12-04T12:00:00.849701+08:000 [Note] Shutting down plugin 'CSV'2018-12-04T12:00:00.849706+08:000 [Note] Shutting down plugin 'sha256_password'2018-12-04T12:00:00.849708+08:000 [Note] Shutting down plugin 'mysql_native_password'2018-12-04T12:00:00.849808+08:000 [Note] Shutting down plugin 'binlog'2018-12-04T12:00:00.850080+08:000 [Note] /usr/sbin/mysqld: Shutdown complete
[root@yuelei1 etc]# date;date -s 14:07
Fri Dec 1414:09:39 CST 2018
Fri Dec 1414:07:00 CST 2018
[root@yuelei1 etc]# date;service mysqld stop
Fri Dec 1414:07:02 CST 2018
Redirecting to /bin/systemctl stop mysqld.service
[root@yuelei1 ~]# tail -f /var/log/mysql/error.log
...
2018-12-14T14:07:03.272305+08:000 [Note] Shutting down plugin 'INNODB_TRX'2018-12-14T14:07:03.272552+08:000 [Note] Shutting down plugin 'InnoDB'2018-12-14T14:07:03.273119+08:000 [Note] InnoDB: FTS optimize thread exiting.
2018-12-14T14:07:03.273566+08:000 [Note] InnoDB: Starting shutdown...
2018-12-14T14:08:10.771410+08:000 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
2018-12-14T14:09:18.510532+08:000 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
2018-12-14T14:09:40.432857+08:000 [Note] InnoDB: MySQL has requested a very fast shutdown without flushing the InnoDB buffer pool to data files. At the next mysqld startup InnoDB will do a crash recovery!
2018-12-14T14:09:40.982834+08:000 [Note] InnoDB: Shutdown completed; log sequence number 02018-12-14T14:09:40.986140+08:000 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"2018-12-14T14:09:40.986185+08:000 [Note] Shutting down plugin 'MEMORY'2018-12-14T14:09:40.986196+08:000 [Note] Shutting down plugin 'CSV'2018-12-14T14:09:40.986200+08:000 [Note] Shutting down plugin 'sha256_password'2018-12-14T14:09:40.986203+08:000 [Note] Shutting down plugin 'mysql_native_password'2018-12-14T14:09:40.986303+08:000 [Note] Shutting down plugin 'binlog'2018-12-14T14:09:40.986775+08:000 [Note] /usr/sbin/mysqld: Shutdown complete
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 字符编码:从基础到乱码解决