MySQL5.7更改用户名密码

更改用户名密码,官方推荐使用alter

ALTER USER test IDENTIFIED BY '123456';

还有一种

update mysql.user set authentication_string=password("新密码") where User="test" and Host="localhost";

猜你喜欢

转载自www.cnblogs.com/paul8339/p/9054497.html
今日推荐