-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!

Spencer
  • 19,732
  • 34
  • 83
  • 119
  • +1. Me too. I'm learning java after doing .NET for years, and I'm amazed at how hard it is to find training resources for such a popular platform. I am betting I just don't know where to look yet. Thank you for asking this for me as well. – David Oct 21 '10 at 20:22
  • I ever wrote a [little JDBC+MySQL tutorial](http://stackoverflow.com/questions/2839321/java-connectivity-with-mysql/2840358#2840358) here, you may find it useful as well. – BalusC Oct 22 '10 at 12:53

2 Answers2

1

Start with sun tutorial. IMHO its the best.

Teja Kantamneni
  • 17,179
  • 11
  • 55
  • 86
  • +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 Oct 21 '10 at 20:47
  • 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 Oct 21 '10 at 20:50
  • Perfect. Thank you. I found the SQL Server connector and finally got it to work via the tutorial on MSDN. – David Oct 21 '10 at 21:28
  • Sun has been taken over by Oracle :) – BalusC Oct 22 '10 at 12:52
0

java2s will help you

Ram
  • 254
  • 1
  • 7
  • 20