Linux - NewbieThis 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.
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.
Hello,
I am using Debian v3.1 (Sarge), with all stable packages. Recently I installed and configured MySQL5/Apache2/PHP5, and for now everything works fine but with one small problem with MySQL5.
I am having a windows xp professional also on the same network where my debian system also lies. Now, I am able to ping or ssh to linux from my windows xp pc, but I am not able to connect to MySQL using MySQL Administrator from windows. I doubt that maybe there is debian firewall which might be blocking the 3306 port which is used by MySQL.
So, can anyone please tell me how can I check if the problem is because of the port getting blocked or not? and if so then how can I unblock port 3306 in debian?
I would not think that a out-of-the-box debian would be running a firewall. Check on the debian box for any iptables rules deployed. If you are not able to connect to port 3306, MySQL may be starting with a --skip-networking option. As far as I know, this would make the db server not accept any connections on port 3306.
Thanks for the quick reply. When i try to connect through MySql Administrator, i get the following error:
Code:
Could not connect to the specified instance.
MySQL Error Number 1130
Host 'xp-system' is not allowed to connect to this MySQL server
If you want to check the network connection, please click the Ping button.
And when i try to ping, i successfully get reply. The network connection between the two systems is fine (i'm sure about this).
Regarding, # man iptables i get the manual so i guess the firewall is integrated into my kernel. So could please tell me how to unblock port 3306?
And when i try to ping, i successfully get reply. The network connection between the two systems is fine (i'm sure about this).
Well then, try and see if what startup options your have for mysql. You can check /etc directory for my.cnf file (there may be several). Open up that file and look for --skip-networking option. I don't know much about debian but you can try.
Quote:
Regarding, # man iptables i get the manual so i guess the firewall is integrated into my kernel. So could please tell me how to unblock port 3306?
Having iptables installed doesn't mean you have it running. You have to actually construct rules and then start iptables service for a firewall to take effect.
Have you tried googling for your particular problem?
I checked MySql's my.cnf and skip_networking variable is disabled. Acutally i only disabled it as this would be first thing i need to disable if i need to access MySql through network.
I tried googling but.. didnt find any solution related to my problem, so i posted in this forum.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.