Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Networking > MySQL router(?) problems

MySQL router(?) problems
Thread Tools
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Jan 30, 2005, 10:05 PM
 
I've set up MySQL, PHPMyAdmin, and Apache 2 on a server of mine, but that's not the problem; I'm having problems with accessing MySQL from machines other than the server itself. Any machine (inside or outside the LAN) can connect and use PHPMyAdmin just fine, but I cannot connect to the server via the command line on any other machine. Here's a little demo of what's going on:

From another machine on the LAN:
Code:
[theman@nacho: ~]$ telnet 192.168.1.98 3306 Trying 192.168.1.98... telnet: connect to address 192.168.1.98: Connection refused telnet: Unable to connect to remote host
From the server itself:
Code:
[theman@taco: ~]$ nc localhost 3306 ' 4.0.22m4W:]D}j,
Anyone have a clue?
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Jan 30, 2005, 11:14 PM
 
Errr... fixed it. The problem was with the "bind-address" directive in /etc/mysql/my.cnf. I had figured it was a networking thing because I could only connect from the host itself, turns out all I needed was to change/comment that line and then restart mysql.

This was on a Gentoo box, by the way.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Jan 31, 2005, 10:02 AM
 
Very cool. I was wondering if you'd had the needed port blocked or restricted in the router, but this is much better.

What router are you using?
Glenn -----
OTR/L, MOT, Tx
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:30 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2