Linux下Mysql增加用户,设置用户权限及修改密码的方法
摘要:
增加用户与设置用户权限:语句grantselect,insert,update,deleteon*.*touser1@”%”Identifiedby“123”表示增加一个用户user1密码为123,可在任何主机上登录,并对所有数据库有查询、插入、修改、删除的权限。语句grantselect,insert,update,deleteondfg.*touser2@localhostidentifiedby“123”表示增加用户user2密码为123,只可以在localhost上登录,并可以对数据库dfg进行查询、插入、修改和删除的操作(localhost既mysql所在的主机)。语句grantcr 阅读全文
posted @ 2012-08-31 16:02 Chris-Lin 阅读(727) 评论(0) 推荐(0) 编辑