mysql shell 查看 所有用户的 授权列表

mysql> select * from information_schema.user_privileges;


mysql shell 查看 所有用户的 授权列表


mysql的远程登录授权


mysql>grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;
mysql>flush privileges;