mySQL-如何查看用户信息及修改

1.查看用户信息

select host,user,plugin,authentication_string from mysql.user

2.修改密码

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456'

猜你喜欢

转载自www.cnblogs.com/ohlala/p/12706290.html