Já é a segunda ou terceira vez que o MySQL sofre um crash e preciso fazer a reinstalação. Apesar de anotar a senha de “root”, nessas ocasiões ocorreram os seguintes erros após reinstalar o MySQL:

error:1045(28000) Access denied for user ‘root@localhost’ (using password=no)

ou

error:1045(28000) Access denied for user ‘root@localhost’ (using password=yes)

ou

Error Nr. 1045
Access denied for user ‘root’@'localhost’ (Using password: NO)

If a personal firewall is running on your machine, please make sure you have opened the TCP port 3306 for connections. Otherwise no client application can connect to the server. After you have opened the port please press [Retry] to apply the security settings.

If you are re-installing after you just uninstalled the MySQL server please note that the data directory was not removed automatically. Therefore the old password from your last installations is still needed to connect to the server. In this case please select skin now and re-run the Configuration Wizard from the start menu.

A solução:

1) pare o serviço do MySQL, se o mesmo estiver rodando

2) abra o prompt de comando (cmd)

3) execute o seguinte comando, sem fechar o cmd: mysqld --skip-grant-tables --user=root

4) abra outra janela do prompt de comando e execute o: mysql

5) execute no MySQL:

use mysql;

update user SET password=password(”root”) WHERE user=”root”;

exit;

6) abra o gerenciador de tarefas e pare a tarefa mysqld

7) inicie o serviço do MySQL e tente se conectar. Com isso o usuário “root” terá a senha resetada

Em breve vou criar outro tópico para o caso de após a reinstalação do MySQL, perder o usuário “root”