aspose file tools*
The moose likes JDBC and the fly likes JDBC with MYSQL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC with MYSQL " Watch "JDBC with MYSQL " New topic
Author

JDBC with MYSQL

Patrick Mugabe
Ranch Hand

Joined: Jan 08, 2002
Posts: 132
Hi Ranchers!
How do you load a driver when using MySQL as your database.
marko stone
Greenhorn

Joined: Oct 16, 2002
Posts: 23
hi i do it like this
Class.forName("org.gjt.mm.mysql.Driver");
if (myCon==null)
{
myCon=DriverManager.getConnection("jdbc:mysql://database","username","password");
mySta=myCon.createStatement();
}
 
 
subject: JDBC with MYSQL