更改用户名密码,官方推荐使用alter
ALTER USER test IDENTIFIED BY '123456';
还有一种
update mysql.user set authentication_string=password("新密码") where User="test" and Host="localhost";
更改用户名密码,官方推荐使用alter
ALTER USER test IDENTIFIED BY '123456';
还有一种
update mysql.user set authentication_string=password("新密码") where User="test" and Host="localhost";