因为最近在用kettle,所以安装了下kettle-manager-v2.0(kettle是7.0),按照教程安装一步一步安装(详细教程可参考:https://my.oschina.net/majj/blog/983091)
但是最后总是报错:Could not create connection to database server. Attempted reconnect 3 times. Giving up,连接不上本地Mysql数据库。
尝试了改变URL地址(因为mysql默认的时区不是中国的):
?serverTimezone=GMT
也可以直接从根源解决问题:
set global time_zone = '+8:00';
show variables like '%time_zone%';