Archive for June, 2009
Connecting MySql With Java
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
4 comments June 9, 2009








