在MySQL的比较新的版本中,使用时总是会报时区错误
The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
那么如何永久的修改MySQL的时区呢?
my.ini文件一般在C:\ProgramData\MySQL\MySQL Server 5.7
或者C:\Program Files (x86)\MySQL\MySQL Server 5.7
或者C:\Program Files\MySQL\MySQL Server 5.7