wood burning stoves 2.0*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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();
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC with MYSQL