摘要: MySQL默认是没有开启远程访问控制的。一、创建远程访问用户账号 用root用户登陆,然后: 1. grant all privileges on *.* to 创建的用户名 @'%' identified by "密码"; 2. flush privileges; //必须刷新上面创建的用户授权,否则无效格式:grant 权限 on 数据库名.表名 to 用户@登录主机 identified by "用户密码"; 说明: @ 后面是访问mysql的客户端IP地址(或是主机名) % 代表任意的客户端,如果填写 localhost 为本地访 阅读全文
posted @ 2012-07-27 13:45 踏浪帅 阅读(411) 评论(0) 推荐(0) 编辑