SyntaxFix
Write A Post
Hire A Developer
Questions
you haven't loaded driver into memory. use this following in init()
init()
Class.forName("com.mysql.jdbc.Driver");
Also, you missed a colon (:) in url, use this
String mySqlUrl = "jdbc:mysql://localhost:3306/mysql";