mysql> use mysql;
mysql> select host,user from user;
+-----------+-----------+
| host | user |
+-----------+-----------+
| % | root |
| localhost | mysql.sys |
| localhost | root |
+-----------+-----------+
3 rows in set (0.00 sec)
证明系统表 user 中已经增加了一条关于 root 远程登录的记录。