Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MySQL help  RSS feed

 
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
Boost this thread!