檢視使用者清單
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';