Connecting MySql With Java
June 9, 2009
Download MYSQL and install it. Instructions for installing MySQL can also be found in Chapter 2 of the MySQL Manual at http://dev.mysql.com/doc/mysql/en/index.html.
To use MySQL with JDBC, you also need to install MySQL Connector/Ja JDBC driver that allows programs to access MySQL databases via JDBC. MySQL Connector/J can also be downloaded from http://www.mysql.com/products/connector/j/.
To install MySQL Connector/J:
1. Copy mysql-connector-java-5.1.7.zip to your hard disk.
2. Open mysql-connector-java-5.1.7.zip with a file extractor. Extract its content to the C:\ drive. This will create a directory named
mysql-connector-java-5.1.7.
3. Copy the mysql-connector-java-5.1.7-bin.jar. file to the JRE’s lib\ext directory, e.g., C:\Program Files\Java\jdk1.5.0\jre\lib\ext. After doing so, you could run the application
2 Comments Add your own
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed









1.
Shamim Ahmed | June 9, 2009 at 6:06 pm
Good jobs.. carry on.
2.
pollobcse05 | June 11, 2009 at 1:26 am
Thanks.