LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 11-07-2008, 06:13 PM   #1
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
Thumbs down 3306 closed, even though it shouldn't be?


I'm running a Slackware box (Linux 2.6.21.5-smp) with "mysql 5.0.51 for slackware-linux-gnu".

I…
1. have no iptables rules at all, and the three chains are indeed ACCEPT;
2. have the "skip-networking" commented out in /etc/my.cnf;
3. do have a port specified in /etc/my.cnf (i.e., it's not blank or commented out);
3. can connect locally (presumably via the socket)
4. cannot connect remotely

Furthermore, port-scanning (with nmap), even from localhost, reveals that 3306 is closed.

In case someone is considering this, I do indeed also have a user with privileges from the remote (LAN, DNS-resolvable) host from which I am attempting to connect.

I have rechecked /etc/my.cnf and /etc/rc.d/rc.mysqld restarted just to be on the safe side. I even rebooted the whole server (first time in almost a year!)

I noticed the following set of recurring lines in /var/lib/mysql/<hostname>.err, however:
Code:
Version: '5.0.51-log'  socket: '/var/run/mysql/mysql.sock'  port: 0  Source distribution
Why is 3306 closed? It looks like mysql isn't even trying to start networking…
 
Old 11-07-2008, 10:34 PM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,051
Blog Entries: 2

Rep: Reputation: 93
you might need to specify a bind-address in your config file

bind-address = 0.0.0.0
or
bind-address = 127.0.0.1
 
Old 11-07-2008, 10:38 PM   #3
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Original Poster
Rep: Reputation: 30
<aghast>Since when!?</aghast>

Not a bad idea though. I tried it, restarted mysqld, but to no avail.
 
  


Reply

Tags
mysql, ports, slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL not listening on port 3306 mr_sarge Linux - Newbie 12 12-12-2010 06:21 AM
Mysql - port 3306 - turn it off rjcrews Linux - Security 5 01-11-2007 12:18 PM
mysqld running and reading for connections on port 3306, no port 3306 found from scan darkenigmaa Linux - Networking 7 09-21-2005 10:10 AM
mysql 3306 security sopiaz57 Linux - Security 8 03-07-2004 04:32 PM
mysql port 3306 bulliver Linux - Security 4 04-17-2003 08:00 PM


All times are GMT -5. The time now is 12:12 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration