LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2005, 07:17 AM   #1
pranith
Member
 
Registered: Sep 2004
Location: Hyd,India
Posts: 83

Rep: Reputation: 15
regarding jdbc driver


hi,
I am using FC3. how do i know what type of jdbc driver i am using. i need it in my programming in java. plz help me out.
Thanks in anticipation
bye,
pranith
 
Old 01-27-2005, 08:04 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
What sort of database are you using? Oracle? MySql?
 
Old 01-27-2005, 11:00 AM   #3
pranith
Member
 
Registered: Sep 2004
Location: Hyd,India
Posts: 83

Original Poster
Rep: Reputation: 15
hi ,
I am using mysql. Do you know what is the java driver name for it??
I would love to know what it is. plz do reply
thanks in anticipation
bye,
Pranith.
 
Old 01-27-2005, 11:28 AM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
The driver for oracle (the onlyone I've used) is called using:

import java.sql.*;
...
...
...
String connectStr = "jdbc:oracle:.........";
Connection conn = DriverManager.getConnection(connectStr);

I'd imagine you'd just change the connectStr to have 'mysql' instead of 'oracle'.

Your jdbc driver should have this sort of thing in the documentation that came with it, or on the MySQL website, here:
http://dev.mysql.com/doc/connector/j/en/index.html

Dave
 
Old 01-27-2005, 11:55 AM   #5
pranith
Member
 
Registered: Sep 2004
Location: Hyd,India
Posts: 83

Original Poster
Rep: Reputation: 15
hi,
hey i am sorry i gotta ask u this. Does it come with FC3 or we need to install something.
Plz let me know. I am new to these.Plz dont get angry
thanks in anticipation
bye,
Pranith.

Waiting for ur reply
 
Old 01-27-2005, 12:11 PM   #6
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
I doubt very much it comes with Fedora, since Fedora doesn't come with Java.

I'd have a look around the MySQL website.

Dave
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC4 JDBC Driver Compatibality issue kartheekpn Linux - Software 0 12-01-2005 06:30 AM
Java JDBC driver mickeyboa Fedora 2 07-23-2005 07:53 AM
oracle jdbc driver for jsdk 1.5 beta? Ikebo Programming 0 10-17-2004 02:13 PM
JDBC and MySQL Driver White R4bbit Debian 2 08-13-2004 04:55 PM
help with my JDBC Driver working2hard Programming 2 07-27-2004 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration