Server returns invalid timezone solve the problem once and for all when connecting mysql IDEA

Permanent solution, as follows:

1, find the installation directory of your mysql

2, find my.ini (windows) or my.cnf (linux), which is mysql configuration file

3, open the configuration file, copy and paste the following code at the end of the configuration file, save and exit. Note that if the two single quotes in English, if it is Chinese would change back to English

 default-time_zone='+8:00'

4, restart mysql, to this end

Guess you like

Origin www.cnblogs.com/EndlessWay233/p/12381264.html