This week's giveaway is in the Groovy forum.
We're giving away four copies of Groovy Fundamentals video training course and have Ken Kousen on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Java and Mysql connection commands Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Java and Mysql connection commands" Watch "Java and Mysql connection commands" New topic

Java and Mysql connection commands

James Eman
Ranch Hand

Joined: Mar 10, 2013
Posts: 47
ok so i have been working on this program for a while and i finally got to the mysql portion but i had a few questions like the auto-generated key and how to insert data into a table.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 42698
That has nothing obvious to do with connections. You should learn about such SQL by running a database from the command line before trying any Java connections. You can google for SQL tutorials; there are many. You can find the MySQL handbook, which has a section with instructions about how to connect from a Java program. The Java Tutorials section is quite good, but might not answer all your questions.
I agree. Here's the link:
subject: Java and Mysql connection commands