Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-04-2009, 04:38 AM   #1
LQ Newbie
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
mysql not open for networking


I have mysql running on an Ubuntu Server 9.10
Running "telnet localhost 3306" shows that mysql is alive and responding.

Running the same command from a different machine gives:
>telnet vprod 3306
telnet: Unable to connect to remote host: Connection refused

So, I stopped mysql and started a dummy server on port 3306 and guess what ... it WAS accessible!
definitely not a firewall problem.

logging into mysql "mysql -p -r ..." and then using "SHOW VARIABLES;" shows that skip_networking=OFF

I ran out of ideas ...
any help would be appreciated.

Thanks in advance
Old 11-04-2009, 04:54 AM   #2
Senior Member
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,295

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335

Edit the file /etc/mysql/my.cnf

Look for the line:
bind-address =

Either comment out the line, delete it, or change it to:
bind-address =

Then restart mysql.

Also, you need to check the mysql privileges. Typically, you use something like
grant all privileges on databasename.* to someuser@localhost identified by 'somepassword';

I think it's better to limit the access, change @localhost to @clientsaddress
Old 11-04-2009, 09:01 AM   #3
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
bind-address = in my.cnf is the key here.


mysql, networking

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot open mysql gui on mysql version 6.0 vitalstrike82 Slackware 6 05-31-2009 12:37 AM
perl networking and mysql error haxpak Linux - Newbie 1 03-01-2009 05:47 PM
MySQL can't connect(skip-networking commented) mrcheeks Debian 0 11-21-2004 12:30 PM
Networking Mysql into Win2000 edigital Linux - Networking 3 12-19-2003 02:57 PM > Forums > Linux Forums > Linux - Server

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

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