• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java and MySQL

 
John Malto
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

this for our thesis so please help me out.

It's my first time using java with a DB program but I know the basics of java and MySQL.
What my program needs to do is that it should be able to store data as well as a corresponding image for that specific data.
So where should I start? I already have MySQL up and running also Netbeans for java programming.

I already have a user interface using java swing.

Thanks in advance!
 
Jelle Klap
Bartender
Posts: 1951
7
Eclipse IDE Java
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well if you want your Java application to communicate with a dabase you should start by taking a look at the JDBC API. You should avoid JPA providers like Hibernate and other abstractions on top of plain JDBC for now, at least that would be my recommendation. Here's a basic JDBC tutorial, which would be a good place to start. For MySQL you'll need to download its JDBC driver, which they call Connector/J.

 
John Malto
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot! i know there's a tutorial about this somewhere but i just couldn't find it. Hmm. I have MySQL 5.5. I think it already has Connector/J.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic