wood burning stoves 2.0*
The moose likes JDBC and the fly likes Mysql-Jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Mysql-Jar file" Watch "Mysql-Jar file" New topic
Author

Mysql-Jar file

kashwini Kulkarni
Ranch Hand

Joined: Aug 07, 2009
Posts: 63
Hello ,

Can anyone please suggest me a site from where can i download mysql.jar and also an example that will explain the connection with mysql.



Thanks in Advance
KAshwini
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

You're looking for Connector/J, a JDBC driver for MySQL.
http://dev.mysql.com/usingmysql/java/


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Jijesh T Das
Greenhorn

Joined: Sep 27, 2007
Posts: 11
http://download.aquafold.com/download/jdbc-drivers/MySQL/
Jijesh T Das
Greenhorn

Joined: Sep 27, 2007
Posts: 11
Class.forName("com.mysql.jdbc.Driver").newInstance();

con = DriverManager.getConnection("jdbc:mysql:///test", "username", "password");
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2491
    
    8

Jijesh T Das wrote:Class.forName("com.mysql.jdbc.Driver").newInstance(); ...

Why the call to newInstance() ?
I have seen this popping up in a few answers lately. Where is that coming from?

Check Oracle's jdbc intro,
and the MySQL jdbc intro, listing 4:

Class.forName("com.mysql.jdbc.Driver");


OCUP UML fundamental and ITIL foundation
youtube channel
kashwini Kulkarni
Ranch Hand

Joined: Aug 07, 2009
Posts: 63
Hello,

Thanks to all of you for helping me and guiding me.


Thanks in Advance
Kashwini
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Mysql-Jar file
 
Similar Threads
Advice of database type is needed
which sql going in database
getting last row
Using datasource in netbeans to get connection
WA #1.....word association