以管理员身份打开cmd,到mysql的bin目录下 use mysql; update user set host = '%' where user = 'root'; FLUSH PRIVILEGES;