problem Description: MySQL when connecting to the database prompts the system time zone error The server times zone value ' й??????? ' is unrecognized or represents more than one Tim E zone. You mus
Solution:
Add the SERVERTIMEZONE=UTC parameter after the database-driven URL. Note When writing code, if the parameter is '. ' After the first one, that
<property name= "url" value= "Jdbc:mysql://localhost:3306/mybatis?servertimezone=utc"/>
But if it's not the first one, that
<property name= "Jdbcurl" > Jdbc:mysql://localhost:3306/mybatis?characterencoding=utf8&servertimezone= UTC/>
This type of writing will be an error, will prompt the reference to entity "Servertimezone" must "" and "" delimiter.
The runtime console also appears that references to entity "Servertimezone" must end with a '; ' delimiter.
Amended to
<property name= "Jdbcurl" > jdbc:mysql://localhost:3306/mybatis?characterencoding=utf8& SERVERTIMEZONE=UTC/>