File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "MySQL help" Watch "MySQL help" New topic
Author

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:
http://dev.mysql.com/doc/connector/j/en/index.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MySQL help
 
Similar Threads
Advice of database type is needed
Using datasource in netbeans to get connection
WA #1.....word association
getting last row
which sql going in database