Mysql date TIMESTAMP insertion type, the system time differences

1. database url append & serverTimezone = Asia / Shanghai 2. Modify the database default time zone> show variables like "% time_zone%"; # query the current time zone> set global time_zone = '+8: 00'; when ## modified mysql global area is Beijing, that is where we are the East area 8> set time_zone = '+8: 00'; ## modify the current conversation area> flush privileges; # effective immediately

Guess you like

Origin www.cnblogs.com/wanshiming/p/11233594.html