LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
Search this Thread
Old 11-04-2009, 03:38 AM   #1
dannyor
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
mysql not open for networking


Hi.

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
Trying 192.168.1.3...
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, 03:54 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,148

Rep: Reputation: 236Reputation: 236Reputation: 236
Hi

Edit the file /etc/mysql/my.cnf

Look for the line:
bind-address = 127.0.0.1

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

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, 08:01 AM   #3
avijitp
Member
 
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.
 
  


Reply

Tags
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-30-2009 11:37 PM
perl networking and mysql error haxpak Linux - Newbie 1 03-01-2009 04:47 PM
MySQL can't connect(skip-networking commented) mrcheeks Debian 0 11-21-2004 11:30 AM
Networking Mysql into Win2000 edigital Linux - Networking 3 12-19-2003 01:57 PM


All times are GMT -5. The time now is 01:26 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration