初次使用mysql键入任何命令都会报以下错:
You must reset your password using ALTER USER statement before executing this statement.
意思是需要重设密码,重设密码的命令如下:
ALTER USER 'root'@'localhost' identified by '新密码' ;
*以上命令适用于 mysql5.7及其以后 的版本
时间:2023-03-11 07:43:01
初次使用mysql键入任何命令都会报以下错:
You must reset your password using ALTER USER statement before executing this statement.
意思是需要重设密码,重设密码的命令如下:
ALTER USER 'root'@'localhost' identified by '新密码' ;
*以上命令适用于 mysql5.7及其以后 的版本