原有数据库dba,赋用户权限
grant all privileges on dba.* to chen identified by 'aaa';
今天新建数据库dbb,也赋给chen用户权限,但换一个密码
grant all privileges on dbb.* to chen identified by 'bbb';
结果,用原用户名和密码都连不上数据库dba了,原来,命令也修改了密码,可见不要使用原已有用户名.
1611阅读 0评论2009-08-20 stone5
分类:Mysql/postgreSQL