Well, the question I am asking may seem stupid but it is biting me hard for the last couple of days. I am not able to run any mysql commands from the Windows command line even though the mysql installation folder is included in the PATH.
When I tried to execute a mysql command I got the above error. I tried several installation/un-installation of mysql version and ended up with no luck and got the same error. I kept getting that same error even after completely uninstalling mysql from Windows 7. If I open the cmd in the installation folder then there is no problem, but the problem arises when cmd is opened in other folder.