LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 09-21-2006, 12:52 AM   #1
rowancompsciguy
Member
 
Registered: Sep 2006
Location: Cherry Hill, NJ
Distribution: Fedora Core 6
Posts: 42

Rep: Reputation: 15
MySQL Connection Problem


Hi all,

I'm trying to connect to a remote MySQL server for a school project. I was trying to the the MySQL Query Browser to do this but whenever I try and connect, the application hangs and I have to terminate it. I have also tried to connect using the command line but I have the same problem the app hangs.

Here's what I was running from the command line...

Code:
mysql --host <hostname> --user <username> --pass --port <portnum>
Does anyone have any suggestions?

Thanks!!
 
Old 09-21-2006, 02:21 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
you need to make sure you are allowed to login remotely

it can either be blocked by iptables (though then you would get a timeout)
it could also be that mysql only accepts local connections
or your user may not be allowed to connect from remote hosts (you would fine this in the privilages of mysql)
 
Old 09-21-2006, 02:53 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
To eleiminate firewall settings (iptables in post above), you can try to telnet to the mysql server
Code:
telnet hostname 3306
or
telnet ipaddress 3306
If you get something like
Code:
Host 'aa.bb.cc' is not allowed to connect to this MySQL server
it's the MySQL server that denies you access. If you get a timeout, it's the firewall.
I guess it will be the latter as the application that you use seem to hang.

PS I assume it's running on the standard port (3306).
 
  


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
mysql connection problem I_AM Linux - General 2 10-27-2005 11:02 PM
MySQL/Java connection problem hudy Programming 3 06-23-2004 09:40 PM
php / mysql connection problem . MikeFoo1 Programming 3 05-02-2004 06:22 PM
mysql connection problem ckamheng Linux - Software 1 05-31-2003 02:30 AM
MySQL server connection problem aeshley Programming 1 03-05-2002 10:59 PM


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