http://www.cnblogs.com/xiaoluo501395377/archive/2013/04/07/3003278.html linux mysql允许远程连接 1.登录数据库:mysql -u root -p 2.使用数据库:use mysql; 3.更新user表:update user set host = '%' where user = 'root'; 4.查看数据:select host, user from user; ,如果有host为%则该用户已经可以远程连接