mysql5.7日志时间戳(log_timestmaps)与系统时间不一致问题以及日志报Got an error reading communication packets情况分析

一、mysql安装后error_log日志时间戳默认为UTC(如下图),因此会造成与系统时间不一致,与北京时间相差8个小时。 解决errro_logs时间戳与linux系统时间不一致问题 step1: 登录到mysql环境执行 SET GLOBAL log_timestamps = SYSTEM;(立即生效,重启mysql服务,失效) step2: vim /etc/my.cnf 添加配置如下,保
相关文章
相关标签/搜索