登陆进去mysql终端

use mysql;

update user set host = '%' where user = 'root'; (使mysql root用户可以连接上任意的ip地址)

FLUSH PRIVILEGES

Logo

更多推荐