Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-21-2006, 12:52 AM   #1
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...

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

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

Rep: Reputation: 33
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
telnet hostname 3306
telnet ipaddress 3306
If you get something like
Host '' 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).


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:20 PM.

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