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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-29-2012, 03:54 AM
|
#1
|
Member
Registered: Sep 2011
Posts: 34
Rep:
|
MySQL not allowing remote connections, iptables has been removed.
I have installed MySQL, php, and phpMyAdmin. I'm setting up a user that allows from '%' (any) and it's not working. I created a DB and it's not allowing me to remotely connect, I have gotten to the point where I have just completely removed iptables and restarted.
Using Debian.
|
|
|
05-29-2012, 04:36 AM
|
#2
|
Member
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854
Rep:
|
I would start by checking if mysql is listening as it should be using netstat.
Code:
netstat -tnlp | grep 3306
And check the "bind-address" directive in my.cnf, making sure mysql is listening on the right address..
Since you don't say how you are trying to connect remotely, and I am unfamiliar with phpMyAdmin, all I can really suggest is to try getting back to basics, try telnet'ing the mysql server to try and isolate whether the problem is phpMyAdmin not connecting or if mysql is not listening.
|
|
|
05-29-2012, 04:47 AM
|
#3
|
Member
Registered: Sep 2011
Posts: 34
Original Poster
Rep:
|
Quote:
Originally Posted by fukawi1
I would start by checking if mysql is listening as it should be using netstat.
Code:
netstat -tnlp | grep 3306
And check the "bind-address" directive in my.cnf, making sure mysql is listening on the right address..
Since you don't say how you are trying to connect remotely, and I am unfamiliar with phpMyAdmin, all I can really suggest is to try getting back to basics, try telnet'ing the mysql server to try and isolate whether the problem is phpMyAdmin not connecting or if mysql is not listening.
|
I'm trying to connect from a php server. Running that netstat it gives me
Code:
tcp 0 0 23.19.48.147:3306 0.0.0.0:* LISTEN
1468/mysqld
I have binded the server on the above IP aswell in the my.cnf and turned off skip-networking, and it's still not working unfortunately.
|
|
|
05-29-2012, 04:55 AM
|
#4
|
Member
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854
Rep:
|
You still haven't said how you are trying to connect (method, commands, error messages, etc)
Try port scanning the server from the client, and telneting, if the former shows port 3306 open, and the latter connects, then i would suggest installing and running mysql (client) on the client machine, and trying to connect directly with mysql..
If all that works, I would say the problem lies with the configuration of phpMyAdmin.
I am not an expert on mysql or phpMyAdmin, so aside from the network connectivity side of things, I cant really help.
Last edited by fukawi1; 05-29-2012 at 04:56 AM.
|
|
|
All times are GMT -5. The time now is 09:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|