| 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: 2896
|
|
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: 10
|
|
|
http://download.aquafold.com/download/jdbc-drivers/MySQL/
|
 |
Jijesh T Das
Greenhorn
Joined: Sep 27, 2007
Posts: 10
|
|
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql:///test", "username", "password");
|
 |
Jan Cumps
Bartender
Joined: Dec 20, 2006
Posts: 2343
|
|
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
ITIL foundation
|
 |
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
|
 |
 |
|
|
subject: Mysql-Jar file
|
|
|