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