File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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
It's not a secret anymore!