1.update
user
set
host =
'%'
where
user
=
'root'
;
2.GRANT
ALL
PRIVILEGES
ON
*.*
TO
'root'
@
'%'
WITH
GRANT
OPTION
FLUSH
PRIVILEGES
这两条命令都是在Mysql命令行执行
1.update
user
set
host =
'%'
where
user
=
'root'
;
2.GRANT
ALL
PRIVILEGES
ON
*.*
TO
'root'
@
'%'
WITH
GRANT
OPTION
FLUSH
PRIVILEGES
这两条命令都是在Mysql命令行执行