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

1.查看用户信息

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

 

 

2.修改密码

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

 

posted on 2020-04-15 16:37  Oohlala  阅读(3096)  评论(0编辑  收藏  举报

导航