LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 06-23-2004, 07:43 AM   #1
hudy
LQ Newbie
 
Registered: Aug 2003
Location: London
Posts: 11

Rep: Reputation: 0
MySQL/Java connection problem


Hi All!
I have problem with connecting java app to mysql database. I get following error: "Server configuration denies access to Data source".

there are no errors in the program as I can run it under mandrake, but I just cannot run it under redhat. I use under both OS same java version same mysql, same connector.

Any ideas.

I tried also GRANT ALL ON ..... sugested somewhere in miling list rom mysql, but nothing.
 
Old 06-23-2004, 08:20 AM   #2
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Re: MySQL/Java connection problem

Quote:
Originally posted by hudy
Hi All!
I have problem with connecting java app to mysql database. I get following error: "Server configuration denies access to Data source".

there are no errors in the program as I can run it under mandrake, but I just cannot run it under redhat. I use under both OS same java version same mysql, same connector.

Any ideas.

I tried also GRANT ALL ON ..... sugested somewhere in miling list rom mysql, but nothing.

Where is the client and where is the server. What IP is being passed to mysql server when you are connecting.

Have you tried mysql -u [user] -p[pass] from your RH client to the myserver. Can you connect? If not then you know where the problem is. Check mysql database and the hosts allowed in User and Db table.
 
Old 06-23-2004, 11:07 AM   #3
hudy
LQ Newbie
 
Registered: Aug 2003
Location: London
Posts: 11

Original Poster
Rep: Reputation: 0
when i connect i use localhost (no ip address). I can connect from the mysql client to the server from the command line I can view and modify tables. I just cannot connect from the application.
 
Old 06-23-2004, 09:40 PM   #4
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
I didn't run into that error, but this might help

http://www.csfalcon.com/wiki/csfalcon/JDBC

Last edited by csfalcon; 06-09-2008 at 03:13 PM.
 
  


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
java + connection to mysql linux_ub Programming 5 03-04-2012 11:59 AM
Mysql and mysql java connector, connection refused arubin Slackware 3 03-29-2008 02:41 AM
mysql connection problem I_AM Linux - General 2 10-27-2005 11:02 PM
[ JSP/JAVA ] MySQL connection fails White R4bbit Programming 4 04-27-2005 09:31 AM
mysql connection problem ckamheng Linux - Software 1 05-31-2003 02:30 AM


All times are GMT -5. The time now is 07:45 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration