参考资料:http://www.111cn.net/database/mysql/46288.htm
思路:一.创建一个用户,设置帐号密码
二.分别赋予该用户多个库的权限.
mysql> use mysql; Database changed mysql> create user ‘developer‘@‘192.168.0.66‘ by‘EacxsdfdJqd‘; mysql> grant select on muu.* to ‘developer‘@192.168.0.66; mysql> grant select on bu.* to ‘developer‘@192.168.0.66; mysql> flush privileges;
记得flush privileges.
原文地址:http://huwei555.blog.51cto.com/1347480/1770664