MySQL社区

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
查看: 4838|回复: 1
打印 上一主题 下一主题

一个库能被本地和b机器访问, 但a机器的其他库还是能被其他机器正常访问

[复制链接]
1#
发表于 2009-6-27 12:10:09 | 显示全部楼层
用grant语句,能办到。

mysql> grant yourprivileges on yourdb.yourtable to [email=user@]user@'IP'[/email] identified by 'password';

替换其中的权限及设置为你需要。

参考:http://www.mysqlpub.com/onlinemanual/doc/refman/5.1/zh/database-administration.html#user-account-management
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|申请友链|小黑屋|Archiver|手机版|MySQL社区 ( 京ICP备07012489号   
联系人:周生; 联系电话:13911732319

GMT+8, 2024-5-20 04:19 , Processed in 0.064036 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表