A very commonly asked question, try doing this (and it worked for me),
goto your mysql folder and there will be a file called my.ini
. Simply add skip-grant-tables
(without an argument) in the [mysqld]
section as below:
[mysqld]
port=3306
skip-grant-tables
Save the file, restart your server.
If the problem still exists, refer to this link.