Solved

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

Posted on 2010-11-24
5
489 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Fore-Foreword Today (2016) Maxmind has a new approach to the distribution of its data sets.  This article may be obsolete.  Instead of using the examples here, have a look at the MaxMind API (https://www.maxmind.com/en/geolite2-developer-package). …
Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now