You will need to provide the actual error you are getting to help diagnose Things to look for 1) Be sure that the mysql driver is in your classpath. 2) Be sure that the URL you are using to connect is valid 3) Be sure that you can connect to the DB and run the SQL query without Java. Without seeing the error you are getting it's hard to give any other advice
Also, not to sound funny, please be sure the server is running. One more thing, after you have successfully compiled your code, mySQL listens to port 3306 by default. For example your connection string should be similar to: "jdbc:mysql://localhost:3306/StudentPerformance" I hope this helps. Craig.
He was expelled for perverse baking experiments. This tiny ad is a model student:
Devious Experiments for a Truly Passive Greenhouse!