当前mysql只允许localhost连接。
需要在localhost的那台机器上登入mysql后,将 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改为"%"
mysql>use mysql;
mysql>update user set host = '%' where user = 'root';
mysql>select host, user from user;
mysql>flush privileges;
当前mysql只允许localhost连接。
需要在localhost的那台机器上登入mysql后,将 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改为"%"
mysql>use mysql;
mysql>update user set host = '%' where user = 'root';
mysql>select host, user from user;
mysql>flush privileges;