try { String userName = \"root\"; String password = \"\"; // is my database String url = \"jdbc:m
To use the MYSQL Driver (Connector/J) you will need to download it from MySQL Connectors and put it in your classpath.
It seems that you should put your MySQL driver jar into your classpath.
Download the jdbc-mysql driver here.
Include it in your classpath.