Idea出现此类问题 (命令行修改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的时间区没有进行修改,解决办法
(1)首先使用wind+R进入命令行窗口
输入指令:
mysql -u root -p
再输入密码即可
(2)修改时区
再此输入命令:
set global time_zone = ‘+8:00’;
(注意这个冒号也需要加上)
再次运行idea即可