I also had the same problem when installing the new version of mysql5.5, but I solved it.
If you go through the path where mysql was installed, in the windows of your Windows system "c: \ mysqlinstalllocation \ bin" you can run the mysql query from this directory, but if you have already added the mysql command to the path option in Windows, in the variables environment that helps you run custom commands from the command line, you can run it directly from any directory on the command line.
Just add the “skip-grant-tables” command under the [mysqld] heading in the mysql.ini file and be sure to start your server after that and start mysql, it will work. At this point you will be logged in without a password, so it is recommended that you remove the password at this point so that you can easily log in after you uncomment the skip-grant-tables commands
And after you delete the password from the root user, be sure to delete the "skip-grant-tables" command or comment it out with #, and then restart the server. He will work.
Now you can log in without a password and run the grant command, as well as set any password that you like.
Samo adx
source share