刚安装好的mysql不允许从远程登录,只能在localhost。
此时,在localhost上登录数据库,将“user”表里的“host”项从“localhost”改为“%”,远程就可以使用"ems sql manager for mysql"等客户端工具进行连接了。
mysql>use mysql;
mysql>select host from user where user='root';
mysql>update user set host='%' where user='root' and host='localhost';
mysql>flush privileges;