what code/string is used for MySql and which drivers are required for mysql
pls help [ July 27, 2004: Message edited by: nirail rail ]
prem saggar
Ranch Hand
Joined: Aug 24, 2000
Posts: 66
posted
0
Hi, I've done this, and I'm sure I got the complete information from mysql.org. Also, there are a bunch of tutorials out there. Google search = javajdbc mysql driver try. The try will probably garuntee you a code example . Happy hunting. Prem
Jonas Isberg
Ranch Hand
Joined: Mar 18, 2003
Posts: 118
posted
0
I used the one found at:
Unpack the .jar file and make sure it is included in your CLASSPATH.
Load the driver with: Class.forName("com.mysql.jdbc.Driver").newInstance(); and get a connection with something like: Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/test?user=root&password=");