Mysql log information time zone modification

Enter mysql and execute as follows:

mysql> set global log_timestamps='SYSTEM';
Query OK, 0 rows affected (0.00 sec)

To ensure that the restart does not fail, modify the configuration file

[root@ydq-mnt mysql]# vim /etc/mysql/mysql.conf.d/mysqld.cnf
文件添加:
log_timestamps=SYSTEM

After modifying the configuration file, you must restart mysql to take effect

[root@ydq-mnt ~]# systemctl restart mysql

Guess you like

Origin blog.csdn.net/m0_49412847/article/details/121760780