Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't connect to MySQL remotely
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
JSylvia007
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2003
Posts: 91
Location: USA East Coast

PostPosted: Wed Mar 17, 2004 2:37 am    Post subject: Can't connect to MySQL remotely Reply with quote

I'm rather new to MySQL, but I believe I have the proper privilages to access it remotely using MySQLFront on my Windows machine from work... but it ALWAYS tells me that the connection failed. Could someone help me to diagnose this problem?

~Jake
_________________
"Yesterday the odds were stacked in favor of my expectations.." Garth Brooks as Chris Gaines

JacobSylvia.com
Back to top
View user's profile Send private message
angelacb
n00b
n00b


Joined: 31 Oct 2003
Posts: 50

PostPosted: Wed Mar 17, 2004 3:02 am    Post subject: Reply with quote

Hi,

did you check if you've bind MySQL to only 127.0.0.1 (localhost) or did you allow any external hosts to connect to such service?

Best Regards,
_________________
Love Linux, Love Life
Back to top
View user's profile Send private message
JSylvia007
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2003
Posts: 91
Location: USA East Coast

PostPosted: Wed Mar 17, 2004 3:05 am    Post subject: Reply with quote

how would i go about checking that?

~Jake
_________________
"Yesterday the odds were stacked in favor of my expectations.." Garth Brooks as Chris Gaines

JacobSylvia.com
Back to top
View user's profile Send private message
angelacb
n00b
n00b


Joined: 31 Oct 2003
Posts: 50

PostPosted: Wed Mar 17, 2004 4:22 am    Post subject: Reply with quote

Check your mysql config files.

For gentoo, i think it's in:
/etc/mysql/my.cnf

Look for lines like:

Quote:
# keep secure by default!
bind-address = 127.0.0.1
port = 3306


Change the bind-address line to your WAN/LAN IP. After doing so, make sure you enforce your security on your firewall and etc....

Best Regards,
_________________
Love Linux, Love Life
Back to top
View user's profile Send private message
JSylvia007
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2003
Posts: 91
Location: USA East Coast

PostPosted: Wed Mar 17, 2004 4:39 am    Post subject: Reply with quote

what if it's a dynamic IP?

~Jake


EDIT:

I did a quick search of the documentaiton, and found out that (it seems to me) the bind-address = isnt needed, so i commented it out. However, I still get ACCESS DENIED ERRORS...

:-/

EDIT:
I'm an idiot... lol... after i commented out that line... i forgot that I needed to give access to the user from ANY host.... My face is red.... it WAS the bind-address address...

~Jake
_________________
"Yesterday the odds were stacked in favor of my expectations.." Garth Brooks as Chris Gaines

JacobSylvia.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum