I am not able to connect to MySQL database. Its giving following error:
mysql error 1042 can't get hostname for your address
How to solve this error?
Find my.ini file of your MySQL Server and then add the following line to it:
Complete code would be:
[mysqld] port=3306 skip-name-resolve
This should solve the problem.