Iniciar error de MYSQL
Busqué mucho en Internet, diciendo que era para configurar un archivo determinado o eliminar un archivo determinado. La siguiente prueba profesional es válida, PS: tutorial de instalación de MYSQL
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Significa que se ingresó la contraseña, pero se informó un error.
Solución:
volver a entrar en:
mysql -u root -p
Ahora déjele ingresar la contraseña:
Enter password:
Presione Enter directamente en este momento, ¡no ingrese la contraseña! ! !
Presione Enter directamente en este momento, ¡no ingrese la contraseña! ! !
Presione Enter directamente en este momento, ¡no ingrese la contraseña! ! !
¡Di lo importante tres veces!
Verá que MYSQL se inició correctamente: (Es tan extraño ...)
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 8.0.22 MySQL Community Server - GPL
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Si desea ingresar la contraseña para comenzar, debe restablecer la contraseña:
Entrada: mysql> ALTER user'root '@' localhost 'IDENTIFICADO POR' 123456 ';
establezca la contraseña en 123456. ( Aún no sé por qué puedo ingresar sin una contraseña y necesito restablecer mi contraseña, pero funciona)
mysql> ALTER user 'root'@'localhost' IDENTIFIED BY '123456';
Query OK, 0 rows affected (0.07 sec) # 这句话表示修改成功
Inicie MYSQL de nuevo
mysql> exit #先输入exit,退出mysql
C:\Windows\system32>mysql -u root -p # 再次启动
Enter password: ****** # 输入密码123456
# 成功...
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 8.0.22 MySQL Community Server - GPL....
Cambiar un método de inicio
Entrada: net start mysql80
C:\Windows\system32>net start mysql80
MySQL80 服务正在启动 ..
MySQL80 服务已经启动成功。