做一个新产品调试,测试库数据库突然被产品部的小弟弟给干掉了,加班,他们都没来,就自己本地搭一个服务器进行测试。 没想到一下出了好多问题。
下载了8.1.12的mysql 数据库,然后就使用了对应版本的mysql jar包,却发现发现连不上数据库。
第一次运行报错 同时还警告数据库驱动字符串有问题,需要用 “com.mysql.cj.jdbc.Driver”,比以前多一个cj,
于是就更改了驱动字符串再次运行,
第二
Sat Mar 23 16:43:53 CST 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 time