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 03-03-2010, 09:23 PM   #1
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Rep: Reputation: 16
Mysql access


hai

How to connect my mysql database server from outside network. because its locally works and i cant able to connect from outside and different networks. please advise me. when i try i am getting like this error.

ERROR 2003 (HY000): Can't connect to MySQL server on '123.136.126.179' (113)

Please advise me .
 
Old 03-03-2010, 09:48 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
There are a number of things that could be blocking this. These are the first that come to mind:

1. Firewall: is port 3306 open? (default mysql port)
2. TCPwrappers. Does /etc/hosts.allow have an entry like "mysqld: LOCAL, 192.168.0.0/255.255.255.0" assuming your ip range here.
3. mysql user account permissions: is there an entry in the mysql.users that will allow remote connection?

Cheers,

Evo2.
 
Old 03-04-2010, 11:26 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,488

Rep: Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970
Quote:
Originally Posted by saran_redhat View Post
hai

How to connect my mysql database server from outside network. because its locally works and i cant able to connect from outside and different networks. please advise me. when i try i am getting like this error.

ERROR 2003 (HY000): Can't connect to MySQL server on '123.136.126.179' (113)

Please advise me .
As evo2 said, those are all the things it could be. Did you try to Google this, because those are very common problems, with very well-known solutions....
 
  


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
How can I get data out of MySQL if I can access the HD, but not run MySQL DJOtaku Linux - Server 4 01-11-2009 07:30 PM
mysql - can't access mysql database as root yogaboy Linux - Software 5 12-28-2006 06:58 AM
How access MySQL by MySQL Administrator? treotan Linux - Newbie 5 12-04-2004 10:17 PM
Access to Mysql munna_502 Linux - Software 2 04-20-2004 03:51 PM
MySQl access from C++ rob99 Programming 6 06-23-2003 01:25 PM


All times are GMT -5. The time now is 10:29 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