命令:
use mysql; --使用mysql这个库
show tables; --查询所有表
select host,user from user; --查询user表中host、user
update user set Host='%' where User='root'; --更新user为root账号的host,默认是本地
flush privileges; --刷新权限
use mysql; --使用mysql这个库
show tables; --查询所有表
select host,user from user; --查询user表中host、user
update user set Host='%' where User='root'; --更新user为root账号的host,默认是本地
flush privileges; --刷新权限