LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 10: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, 10:48 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706
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, 12:26 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,430

Rep: Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111
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 08:30 PM
mysql - can't access mysql database as root yogaboy Linux - Software 5 12-28-2006 07:58 AM
How access MySQL by MySQL Administrator? treotan Linux - Newbie 5 12-04-2004 11:17 PM
Access to Mysql munna_502 Linux - Software 2 04-20-2004 04:51 PM
MySQl access from C++ rob99 Programming 6 06-23-2003 02:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:54 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
Open Source Consulting | Domain Registration