In this video, I have shown how to connect our Java program with an existing database in mysql. The URL structure of mysql is also explained. At the end of the video, a successful connection…
Original source
In this video, I have shown how to connect our Java program with an existing database in mysql. The URL structure of mysql is also explained. At the end of the video, a successful connection…
Original source
3 responses to “JDBC Tutorial for Beginners #2 : Connecting Java Program to MySQL Database”
there an error you will get
..
WARN: Establishing SSL connection without server's identity verification is not recommended.
..
the short solution
..
"jdbc:mysql://localhost:3306/_YOURDB_?autoReconnect=true&useSSL=false"
Sat Oct 21 00:53:42 BRST 2017 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.
how to leave correctly without displaying this message
thanks for these awesome tutorials, please keep them coming!!