Solved

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

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

786 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