在cmd运行命令
mysql --version
出现mysql Ver 8.0.36 for Win64 on x86_64 (MySQL Community Server - GPL)
这个版本要用下面的指令更改密码
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码';
在cmd运行命令
mysql --version
出现mysql Ver 8.0.36 for Win64 on x86_64 (MySQL Community Server - GPL)
这个版本要用下面的指令更改密码
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码';