Solved

Unable to connect remotely to my mysql server on a linux system

Posted on 2010-11-24
5
491 Views
Last Modified: 2012-05-10
From my linux system, it shows mysql is up and running from the output of the following command:

[root@localhost ~]# netstat -npl | grep tcp
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      31579/mysqld        
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      3294/portmap        
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      2884/cupsd          
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      3534/sendmail: acce
tcp        0      0 0.0.0.0:953                 0.0.0.0:*                   LISTEN      3315/rpc.statd      
tcp        0      0 :::80                       :::*                        LISTEN      3580/httpd          
tcp        0      0 :::22                       :::*                        LISTEN      3513/sshd          
tcp        0      0 :::443                      :::*                        LISTEN      3580/httpd          
[root@localhost ~]#


I can't seem to connect to  it remotely from a window system using MySQL Workbench application. What else can I try to do to get a connection?
0
Comment
Question by:areyouready344
  • 3
5 Comments
 
LVL 4

Expert Comment

by:max-hb
ID: 34207452
Make sure your MySQl server is listening for incoming connections:

Follow instructions at http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html especially step 3!
0
 

Author Comment

by:areyouready344
ID: 34209779
Thanks max-hb, how can i get the mysqld process to listen on the ip address of 192.168.1.137

cp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      31579/mysqld  


0
 
LVL 15

Expert Comment

by:DonConsolio
ID: 34209861
Your mysqld is already listening on ALL interfaces (0.0.0.0), but on the quite unusual port 31579

to get a listening server for  192.168.1.137 on dthe default port of 3306 use:

[mysqld]
...
port            = 3306
bind-address    = 192.168.1.137
...

and restart your mysql server. You may also want to verify you have no firewall active.
0
 

Accepted Solution

by:
areyouready344 earned 0 total points
ID: 34210086
Working, thanks to this document located at:

http://benrobb.com/2007/01/15/howto-remote-root-access-to-mysql/
0
 

Author Closing Comment

by:areyouready344
ID: 34424475
worked great
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question