September 04, 2010, 04:10:40 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  Home Help Media Affiliates Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Connect to a MySQL database with Java  (Read 2811 times)
0 Members and 1 Guest are viewing this topic.
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2620
Referrals: 13

WWW Awards
« on: January 27, 2008, 05:09:43 PM »

If you want to connect to a MySQL database with java you can download the software here: http://www.mysql.com/products/connector/j/ I use this to connect my software to a MySQL database.

If anyone want i can create a tutorial / code example to connect and read data from the MySQL database.
Logged

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
Javaforums.net :: a community about Java software development.
« on: January 27, 2008, 05:09:43 PM »

 Logged
BlueEew
Member
*

Reputation: 0
Offline Offline
Gender: Male
Posts: 100
Referrals: 0

Awards
« Reply #1 on: February 29, 2008, 07:05:37 PM »

I was just thinking.  What programming language usually connects to the mySQL databases?  Like for forums and blogs?  Is it PHP?  Maybe you can explain to me?  I am new to this type of stuff.
Logged

Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2620
Referrals: 13

WWW Awards
« Reply #2 on: February 29, 2008, 08:49:06 PM »

Well, I program mostly in Java so i use the MySQL® Connector/J do connect to a MySQL database. Works really well.
Logged

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
BlueEew
Member
*

Reputation: 0
Offline Offline
Gender: Male
Posts: 100
Referrals: 0

Awards
« Reply #3 on: March 01, 2008, 01:39:41 PM »

Do vBulletin forums use Java to connect to the mySQL database?  If not is it possible to change it so it dose.  If yes, what are the advantages?
Logged

mrinal
Junior Member
*

Reputation: 0
Offline Offline
Posts: 8
Referrals: 0

Awards
« Reply #4 on: June 30, 2008, 03:33:20 AM »

I use the jconnector 3.x version to connect to mysql in java programs like all other programmers but wonder if there any new features with the current version of jconnector. Please tell if u know as i may upgrade if i find it better
Logged
hamik112
Member
*

Reputation: 0
Offline Offline
Posts: 21
Referrals: 0

Awards
« Reply #5 on: June 30, 2008, 02:05:37 PM »

Doesn't java have a library that lets you connect to MySQL through like ODC or something?
Logged
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2620
Referrals: 13

WWW Awards
« Reply #6 on: June 30, 2008, 02:12:51 PM »

Doesn't java have a library that lets you connect to MySQL through like ODC or something?

You need to use an external library to be able to connect to a mysql database in Java because Java does not offer standard connectivity to a mysql database afaik. Download it here: http://www.mysql.com/products/connector/j/ there are a few code snippets on the forums that shows you how to retrieve mysql data from java. Just look around or ask for it in one of the boards and i'll see what i can do for you.
Logged

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
Javaforums.net :: a community about Java software development.
   

Your Ad Here
 Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.321 seconds with 40 queries.

Google visited last this page Yesterday at 06:34:32 PM