The moose likes JDBC and Relational Databases and the fly likes MySQL help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "MySQL help" Watch "MySQL help" New topic

MySQL help

Cyrus Serrano
Ranch Hand

Joined: Sep 29, 2003
Posts: 137
can anyone give me a sample java code on how to connect to a MySQL database.

thank you.
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
To get things set up, look at the documentation of the MySQL JDBC driver. There is some basic sample code:
I agree. Here's the link:
subject: MySQL help
jQuery in Action, 3rd edition