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. 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
2010-10-21 20:47:17
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
2010-10-21 20:50:40
Perfect. Thank you. I found the SQL Server connector and finally got it to work via the tutorial on MSDN.
David Stratton
2010-10-21 21:28:26
Sun has been taken over by Oracle :)
BalusC
2010-10-22 12:52:38
A:
Take a look at this. Nice tutorial. http://www.herongyang.com/JDBC/ \m/
udsha
2010-10-22 09:03:17