先登陆 再选择mysql数据库 使用语句 use mysql; select host,user from mysql.user; 参考链接 https://blog.csdn.net/qq_40003309/article/details/106864880