tags:

views:

140

answers:

3

I'd like to know if jdbc by itself is compatible with mysql or do I have to intsall something extra? I was told it is not compatible and that I'd have to use a different database.

+5  A: 

It does.

You have to use the correct mysql jdbc driver and that's it!

Some useful links:

Little old but still helpful:

Using JDBC with MySQL, Getting Started

Official reference:

Official JDBC Driver

JDBC reference

You have to look at your specific version.

MySQL belogs to Sun Microsystems now after all

Using MySQL from Java

OscarRyz
+1: they were lied to.
S.Lott
Thanks for the thorough answer.
Eugene M
A: 

If you are using the NetBeans IDE by chance, this might help you: http://www.netbeans.org/kb/docs/ide/mysql.html

Amit
A: 

JDBC is a specification for Java/database interaction. As a specification it's compatible with almost every DB. However, you need a JDBC compliant driver written for your database. Googling "jdbc driver {databasevendor}" should get you an the right track.

Chris Nava