LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-01-2005, 06:30 AM   #1
kartheekpn
Member
 
Registered: Mar 2005
Location: bangalore
Posts: 100

Rep: Reputation: 15
FC4 JDBC Driver Compatibality issue


Hello Everbody,

I have written the following java program. But I am getting "access denied" message eventhough i have given all the access privileges.


=====================================================
import java.sql.*;
class TestDB
{
public static void main(String arg[])
{
try{
Class.forName("org.gjt.mm.mysql.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/jbossportal","portal","portal123");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from test");
while(rs.next())
{
System.out.println(rs.getString(1));
}
}
catch(Exception e){
System.out.println("Error Due to "+e.getMessage());
}
}
}
=====================================================
I have verified that the user can connect to the db via shell

My Configuration:
FC4 with mysql-4.1.11-2 and mysql-connector-java-3.1.4-beta-bin.jar


I am of doubt about the comatibality of the driver. Can anybody help me...


Regards
Kartheek
 
  


Reply



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
Java JDBC driver mickeyboa Fedora 2 07-23-2005 07:53 AM
regarding jdbc driver pranith Linux - Newbie 5 01-27-2005 12:11 PM
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 - Software

All times are GMT -5. The time now is 12:03 AM.

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