File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and the fly likes Connection to MySQL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Connection to MySQL" Watch "Connection to MySQL" New topic

Connection to MySQL

Patrick Mugabe
Ranch Hand

Joined: Jan 08, 2002
Posts: 132
Please assist me on how I can connect to MySQL database.
I know how to connect to Access and SQLServer.
Infact I just want to know how I load the database driver for MySQL.
Joe Ess

Joined: Oct 29, 2001
Posts: 8705

Hey Patrick, did you get that JTable working?
As for the JDBC driver for MYSql, as the Perl community says: "There's More Than One Way". Which driver are you using? If you have MySQL Connector/J, the syntax to load the driver is:

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Patrick Mugabe
Ranch Hand

Joined: Jan 08, 2002
Posts: 132
Thanks so much.
Oh, about that JTable I got it working.
I was very happy, I have learnt something new
Malhar Barai
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
There's one more...


Malhar Barai
SOA & Java Book
yub huang

Joined: Jun 08, 2002
Posts: 17
hi,how can i get the two driver and how can i make it works?
i am a first leaner to the connection of mysql.
thanks a lot!

I want to know
I agree. Here's the link:
subject: Connection to MySQL
Similar Threads
MySql Question
Java and mysql connection from begin
Newbie in JSP
JTable question