The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone。html
今天有Mysql的时候遇到了这个错误,应该是时区错误,具体不懂,解决方案:mysql
一、建立数据库链接时的url:"jdbc:mysql://127.0.0.1:3306/db1?serverTimezone=UTC" 也就是相对于加上了 ?serverTimezone=UTCsql
但既然是在项目里加的,应该就指针对该项目。因此根本解决应该是:数据库
二、执行sql语句:set global time_zone='+8:00' post