Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Make MySQL server available from not only localhost [solved]
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
pioneer-hg
n00b
n00b


Joined: 29 Apr 2004
Posts: 27
Location: Kyiv, Ukraine

PostPosted: Thu Sep 15, 2005 9:53 am    Post subject: Make MySQL server available from not only localhost [solved] Reply with quote

Hello everybody.

I have such situation. There are mysql server on my gentoo machine. It works well, but, I need to access it from another computer in the network, not only from this gentoo server. I permit access in mysql for user 'root' from any host (%) with all privileges and restarted mysql. But, it seems that mysql port is open only for localhost connections (according to the results of nmap scan from localhost and some other hosts within the network). So, I do not know what to do after that, advice me, please.

Oh, I forgot to say that there are iptables running on this server, but iptables rules are almost empty except two masquerade rules.
_________________
[pioneer]


Last edited by pioneer-hg on Thu Sep 15, 2005 1:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Sep 15, 2005 12:41 pm    Post subject: Reply with quote

Edit /etc/mysql/my.cnf and change the bind-address setting in the [mysqld] section:

Code:
[mysqld]

<....other stuff>

bind-address = 0.0.0.0
port = 3306

Restart mysql.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
pioneer-hg
n00b
n00b


Joined: 29 Apr 2004
Posts: 27
Location: Kyiv, Ukraine

PostPosted: Thu Sep 15, 2005 1:13 pm    Post subject: Reply with quote

Thank you, it works!
_________________
[pioneer]
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Sep 15, 2005 1:15 pm    Post subject: Reply with quote

Errrm... yes ?

Of course it works.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
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