View Full Version : enable external mysql connection on :3306
sascha
11-22-2009, 12:28 PM
hi,
i use ispmanager pro. how can i enable connections to mysql port 3306 to connect to the db with external programms?
thx
sascha
slava
11-22-2009, 01:19 PM
You need enable "Allow remote access" checkbox in the database user properties.
sascha
11-27-2009, 06:18 PM
ok, i´ve enabled it, but still
PORT STATE SERVICE
3306/tcp closed mysql
i've restart the server, but nothing changes
thx
slava
11-27-2009, 07:35 PM
By default MySQL listen all this port. Possible firewall or internet provider blocked this.
What's show command
netstat -na | grep 3306
?
sascha
11-28-2009, 11:09 AM
the firewall is off.
ispmanager:~# netstat -na | grep 3306
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
sascha
12-01-2009, 09:12 PM
i am confused :) look this:
ispmanager:~# nmap localhost -p3306
Starting Nmap 4.62 ( http://nmap.org ) at 2009-12-01 19:45 CET
Interesting ports on localhost (127.0.0.1):
PORT STATE SERVICE
3306/tcp open mysql
********
ispmanager:~# nmap 80.XXX.XXX.XXX -p3306
Starting Nmap 4.62 ( http://nmap.org ) at 2009-12-01 19:45 CET
Interesting ports on dedicaXXXXXXXXXXXXXXXXX
PORT STATE SERVICE
3306/tcp closed mysql
both scans are from the server itself. when is use its server own ip, the port is closed, if i used loacalhost, everything is ok??
my firewall is of, and the provider has no firewall !
greets
sascha
sascha
12-03-2009, 03:27 PM
no idea? from anyone?
tanya
12-14-2009, 07:22 AM
Hi,
You should delete the string "bind-address =" from the file /etc/my.cnf
sascha
12-19-2009, 07:32 PM
thats it, thx :)
vBulletin® v3.8.9, Copyright ©2000-2024, vBulletin Solutions, Inc.