I have MySQL 5.5 Server setup on a Windows machine.
I am able to connect to the server from console / app running on the same machine but not from a remote machine. While connecting using the following command:
mysql -h xx.xx.xx.xx --port=3306 -u root -p
I get the following error:
ERROR 1042 (HY000): Can't get hostname for your address
I have tried putting the entry of client IP in server's %windir%\system32\drivers\etc\hosts
file as:
<client-ip> <client-hostname>
- Server: MySQL 5.5
- OS: Windows XP