在cmd上输入 mysql -h 主机名 -u 用户名 -p
如:(mysql -h localhost -u root -p)
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
站长微信:xiaomao0055
站长QQ:14496453