版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/skyejy/article/details/84305528
eclipse jdbc连接MySQL数据库时遇到这个错
解决方法是:
String url = "jdbc:mysql://localhost:3306/mycompany";
改为:
String url = "jdbc:mysql://localhost:3306/mycompany?serverTimezone=UTC&useUnicode = true&characterEncoding = utf-8&useSSL = false";