mysql不同数据库也不要重复给相同用户赋不同密码
作者:转载自:更新时间:2009-8-2

原有数据库dba,赋用户权限
grant all privileges  on dba.* to chen@localhost identified by 'aaa';
今天新建数据库dbb,也赋给chen用户权限,但换一个密码
grant all privileges  on dbb.* to chen@localhost identified by 'bbb';
 
结果,用原用户名和密码都连不上数据库dba了,原来,命令也修改了密码,可见不要使用原已有用户名.