解压版mysql登录_Access denied for user 'root'@'localhost' (using password: YES)——mysql,表示密码不正确

解压版配置方法

https://www.cnblogs.com/txwtech/p/14751496.html

D:mysql-5.7.24-winx64in>mysql -uroot -p!1AmOI8zOW13
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

using password: YES:表示输入了密码

using password: No: 没有输入密码

如果用:D:mysql-5.7.24-winx64in>mysqld --initialize 命令初始化后,就自动产生了密码,默认用户名是:root

在err文件找到正确的密码。

欢迎讨论,相互学习。 txwtech@163.com
原文地址:https://www.cnblogs.com/txwtech/p/14948462.html