I started MySQL with this command service mysql start
and it worked pretty well. So:
- Using the
netstat
command, I found127.0.0.1:3306
was in listening state, this is the MySQL service. - So I did a scan with
nmap
onlocalhost
usingnmap -p 3306 127.0.0.1
it gave me the result 3306 is open, this is the MySQL service running. - And now I did
nmap
scan from the public IP192.168.1.100
and it throws me a output MySQL ports is closed.
So why the port is show showing open when I scanned through internal IP and not from the remote IP, do I have to forward the IP?