LinuxQuestions.org
Review your favorite Linux distribution.
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 06-17-2009, 06:16 AM   #1
joshinirav21
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Connection Failure in Mandriva 2009.1 Mysql with Java


Hi everyone,
From few day i was facing a problem in Mandriva 2009.1 Mysql 5.1
When I am going to connect with the Java JDBC Connector it show "Communication Link Failure"

I have Mysql JDBC version 3.1.1
I am running on localhost.

Can anyone help me ?
 
Old 06-17-2009, 12:17 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,925

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by joshinirav21 View Post
Hi everyone,
From few day i was facing a problem in Mandriva 2009.1 Mysql 5.1
When I am going to connect with the Java JDBC Connector it show "Communication Link Failure"

I have Mysql JDBC version 3.1.1
I am running on localhost.

Can anyone help me ?
You've not given very much information, so it's hard to help. Can you connect to the local database at all? Are you able to access it via ODBC from another machine? And how are you trying to use the JDBC connector?

This page has examples:
http://www.stardeveloper.com/article...3090401&page=1

Check it out, it may help.
 
Old 06-20-2009, 10:48 AM   #3
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 51
@joshinirav21, check that MySQL is started.
Code:
$SHELL: lsof -nPi|grep -i mysql|grep 3306

$SHELL: ps auxww|grep -i mysql
Look at the mysql configuration file (my.cnf) and comment any line starting with skip-networking, and then restart MySQL.
 
  


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
Mandriva Linux 2009.1 *Spring) released to the public today - 29, April 2009 ernie Mandriva 13 06-12-2009 06:58 PM
Mandriva Linux 2009 Spring (2009.1) has been officially released! tux99 Mandriva 1 04-30-2009 11:07 AM
LXer: Virtual Hosting With PureFTPd And MySQL On Mandriva 2009.0 LXer Syndicated Linux News 0 11-10-2008 09:00 AM
LXer: Virtual Users/Domains With Postfix/Courier/MySQL/SquirrelMail (Mandriva 2009.0) LXer Syndicated Linux News 0 10-23-2008 07:00 PM
Mysql and mysql java connector, connection refused arubin Slackware 3 03-29-2008 02:41 AM


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