Quantcast
Viewing all articles
Browse latest Browse all 2

MySQL server not accessible from remote machine

I have installed MySQL server in my local Ubuntu server (11.10). I can't connect to the server from a remote machine.

When I tried:- nmap localhost, It shows the following

PORT     STATE SERVICE22/tcp   open  ssh80/tcp   open  http139/tcp  open  netbios-ssn445/tcp  open  microsoft-ds631/tcp  open  ipp3306/tcp open  mysql

It means that 3306, the MySQL port is open, right? But when I tried nmap 192.168.0.50, which is the server IP, I get the following:-

PORT    STATE SERVICE22/tcp  open  ssh80/tcp  open  http139/tcp open  netbios-ssn445/tcp open  microsoft-ds

Does this mean the port is not open when accessing using IP? If so, how do I open the port?

I had tried the following code, but looks like it didn't work.

sudo iptables -A INPUT -p tcp --dport 3306 -j ACCEPT

What is wrong here?


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>