Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MySQL help

 
Cyrus Serrano
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone give me a sample java code on how to connect to a MySQL database.

thank you.
 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic