4 Replies - 1672 Views - Last Post: 25 March 2011 - 11:04 AM Rate Topic: -----

#1 brandoncaddowyoung  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 24-March 11

Using MYSQL with java

Posted 25 March 2011 - 08:37 AM

Im fairly new to Java but interested in learning how to use databases with java.

I have experimented allot with MySQL from php and have no problems there. I used XAMPP for that.

Do javas calls to MYSQL work in a similar way? Is it as straight forward?

So I still have XAMPP
I downloaded mysql-connector-java-5.1.15
changed my variable path to the location of mysql-connector-java-5.1.15-bin.jar
(changed the variable path by going start, right click on my computer, properties, advanced system settings, enviroment variables)

Am I good to go now? It doesnt seem to work?

Thanks for yout time,
Brandon

Is This A Good Question/Topic? 0
  • +

Replies To: Using MYSQL with java

#2 Tryparse  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 80
  • View blog
  • Posts: 193
  • Joined: 20-April 10

Re: Using MYSQL with java

Posted 25 March 2011 - 09:27 AM

You'll want to look into JDBC.
Was This Post Helpful? 0
  • +
  • -

#3 EarthShaker  Icon User is offline

  • D.I.C Head

Reputation: 55
  • View blog
  • Posts: 186
  • Joined: 16-March 11

Re: Using MYSQL with java

Posted 25 March 2011 - 09:30 AM

Did you follow the installation guide for mysql-connector-java?
http://dev.mysql.com...installing.html

Edit: this link might help as well.
http://www.dreaminco...bc-odbc-bridge/

This post has been edited by EarthShaker: 25 March 2011 - 09:36 AM

Was This Post Helpful? 0
  • +
  • -

#4 brandoncaddowyoung  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 24-March 11

Re: Using MYSQL with java

Posted 25 March 2011 - 10:59 AM

View PostTryparse, on 25 March 2011 - 09:27 AM, said:

You'll want to look into JDBC.


I have tried to but im going around in circles to be honest.

Can you give me a brief list of what I need to download and install to get it going?

I have XAMPP (Which I was using MySQL with for php project)
I have mysql-connector-java-5.1.15
and obviously the JDK.

Thanks again
Was This Post Helpful? 0
  • +
  • -

#5 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10566
  • View blog
  • Posts: 39,107
  • Joined: 27-December 08

Re: Using MYSQL with java

Posted 25 March 2011 - 11:04 AM

You might want to check out this tutorial as well. It shows how to get the driver set up. If you're using an IDE, it may have tools to help make setting up the driver easier.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1