可通过以下语句查询
use mysql; select host from user where user='root';
结果:
+-----------+ | host | +-----------+ | localhost | +-----------+
Host列指定了允许用户登录所使用的IP,可以使用通配符%,例如‘10.1.%’。 如果host=’%‘标识允许所有地址访问
posted on 2022-04-11 22:39 路过君 阅读(0) 评论(0) 收藏 举报