首先进入到mysql命令行界面,然后依次输入以下命令。
USE mysql; ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘你的密码’; FLUSH PRIVILEGES;
首先进入到mysql命令行界面,然后依次输入以下命令。
USE mysql; ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘你的密码’; FLUSH PRIVILEGES;