It worked two days ago. Now it doesn\'t. I\'m 100% sure the coding is correct. This is the way I used to connect the database. Couldn\'t find an answer yet to my problem. Please
Please add your jar to the class path like below.
java -cp .;C:\Program Files\MySQL\mysql-connector-java-5.1.15\mysql-connector-java-5.1.15.jar MysqlConnect
Note:Please replace msql connector with your jar file as per requirement.