FAQ解答
上一节
下一节
常见问题1:
运行出错:Failed to obtain JDBC Connection;nested exception is com.mysql.jdbc.
解答:
原因:链接数据库失败一般就是版本问题,需要考虑你本地数据库的版本
常见问题2:
运行出错:You must configureeither the server or JDBC driver (via the serverTimezone configurationproperty) to use a more specifc time zone value if you want to utilize timezone support.
解答:
MySql时区错误这个只要在jdbc:mysql://localhost:3306/XXXX 的后面加上 ?serverTimezone=UTC 就可以了,另外 ?useUnicode=true&characterEncoding=UTF-8 加上这个可以解决中文乱码问题。
常见问题3:
运行出错:Loadingclass com.mysql.jdbc.Driver'. This is deprecated. The new driver classiscom.mysql.cj.jdbc.Driver’。
解答:

