LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 11-04-2009, 04:38 AM   #1
dannyor
LQ Newbie
 
Registered: Nov 2009
Posts: 1
Thanked: 0
mysql not open for networking


[Log in to get rid of this advertisement]
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
linuxubuntu dannyor is offline  
Tag This Post ,
Reply With Quote
Old 11-04-2009, 04:54 AM   #2
Guttorm
Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 604
Thanked: 33
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
windows_xp_2003 Guttorm is offline     Reply With Quote
Old 11-04-2009, 09:01 AM   #3
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 153
Thanked: 3
bind-address = in my.cnf is the key here.
windows_xp_2003 avijitp is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 11:14 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration