Two Laptop Bag*
The moose likes JDBC 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
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
Similar Threads
WA #1.....word association
Advice of database type is needed
which sql going in database
getting last row
Using datasource in netbeans to get connection