tags:

views:

36

answers:

3

I am trying to learn how to connect my Java code to an MySQL database. I am looking for some good video tutorials (if none exists, I'd be interested in non-video tutorials). Thanks in advance, this will really help me!

+1  A: 

Start with sun tutorial. IMHO its the best.

Teja Kantamneni
+1. Nice. Do you know where I would find missing information, such as how to connect to a SQL server or DB2, where to find and how to install appropriate JDBC drivers, etc? I am having a bear of a time just getting my first connection to a SQL server to work, and all of the tutorials, like this one, seem to completely ignore such info.
David Stratton
The connection strings are specific to database and sometimes to driver. You have to check individual driver documentation for those details. This is the one for mysql with examples and details http://dev.mysql.com/doc/refman/5.1/en/connector-j.html
Teja Kantamneni
Perfect. Thank you. I found the SQL Server connector and finally got it to work via the tutorial on MSDN.
David Stratton
Sun has been taken over by Oracle :)
BalusC
A: 

java2s will help you

Ram
A: 

Take a look at this. Nice tutorial. http://www.herongyang.com/JDBC/ \m/

udsha