MySQL-JDBC连接报错

1.连接的时候bao报下面这个错误

The server time zone value 'PDT' is unrecognized or represents more than one time zone. You must con

这个错误的大概意思就是你装MySQL的服务器时区和你正在连接的机器的服务器时区不同。

2.如何解决

(1)自己修改MySQL服务器的时区为当前时区;

show variables like '%time_zone';

set global time_zone='+8:00'; 设置全球时间

flush privileges;    刷新一下

猜你喜欢

转载自blog.csdn.net/qq_42064119/article/details/81074432