1。改表法。在数据库所在机器登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,把"localhost"改称"%"
重起mysql服务即可完成。
grant all privileges on . to 'root'@'%' identified by 'password' with grant option; |
|
来自: Architect_home > 《mysql》