This happened to me while I was installing MySQL on my Windows 7 box. I had struggle installing the mysql daemon, because my User Access Control on Windows 7 Was not letting me install mysqld. After disabling UAC , I was able to issue the following commands.
mysqld –install followed by mysqld –start
After executing the above commands, I had issues while trying to connect to mysql prompt.
ERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost’ (10061)
I went to services UI and started the MySQL Service. Then i was able to get into MySQL Prompt