mysql
L-cy
我很懒
展开
-
jdbc连接mysql的错误1
java.sql.SQLException: The server time zone value '???ú±ê×??±??' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone conf...原创 2019-08-26 19:33:48 · 117 阅读 · 0 评论 -
mysql报错原因
java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launche...原创 2019-08-26 19:40:53 · 110 阅读 · 0 评论 -
连接mysql工具类
本工具类是针对mysql8.0版本 import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; /** * 数据库连接工具类 * @ClassName: ...原创 2019-08-26 19:44:13 · 250 阅读 · 0 评论