| [SOLVED] How to connect a java (JDBC) program to MySQL? I need help with finding out, which jar files I need to download and include in my java file to connect to MySQL. (MySQL is installed and setup correctly.)
Please list steps and links to the files I need to download.
Thanks!
I downloaded the driver unzipped it and included the following to my java file
import com.mysql.jdbc.ConnectionPropertiesTransform;
import com.mysql.jdbc.Driver;
import com.mysql.jdbc.NonRegisteringDriver;
import com.mysql.jdbc.SQLError;
import com.mysql.jdbc.StringUtils;
import com.mysql.jdbc.log.StandardLogger;
it compiled ok. but still can't connect to the database!
here's my code....
http://anosh.my-place.us/java/Connect.java |