显示的是Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually.时区问题。
在网上查,说是用cmd进MySQL,结果打mysql -hlocalhost -uroot -p就会出现不是内部或外部命令,也不是可运行的程序
或批处理文件。
如果你是直接将库导入idea中,需要在idea中配置时区,如果是配置文件形式,需要加上时区的配置
链接后面直接加就行了
jdbc:mysql://localhost:3306/test?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8
mysql8.0的连接要设置时区,或者你直接用idea的连接数据库,从里面找时区选项改