天天看點

mysql檢視使用者清單,檢視使用者授權,建立使用者授權,删除使用者

檢視使用者清單

select from host,user,password from mysql.user;

檢視授權

show grants for root@localhost;

建使用者授權

grant all privileges on . to root@localhost identified by '123456';

删除使用者

delete from mysql.user user='root'

delete from mysql.user where user='root' and ip='localhost';

繼續閱讀