mysql>ALTER user \'用户名\'@\'localhost\' IDENTIFIED BY \'新密码\';mysql>ALTER user \'root\'@\'localhost\' IDENTIFIED BY \'admin\';
mysql8.0修改root密码(简单)
未经允许不得转载:爱站程序员基地 » mysql8.0修改root密码(简单)
mysql>ALTER user \'用户名\'@\'localhost\' IDENTIFIED BY \'新密码\';mysql>ALTER user \'root\'@\'localhost\' IDENTIFIED BY \'admin\';