mysql check out time and time zone differences sometimes table

As check out the time zone field is CTS, the United States is based on the time zone to convert a time stamp, then you need to modify the configuration file, you need to modify the configuration file my.cnf (in /etc/my.cnf or / etc / mysql / my. cnf).

In the last line add  default-Time-Zone =  '+08: 00', save the configuration file. service mysqld restart to restart mysql.

 

Guess you like

Origin www.cnblogs.com/rolayblog/p/11319477.html