Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes JDBC and Relational Databases 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 The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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();
}
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: JDBC with MYSQL