73

MySQL授权用户及密码恢复设置-夜流璃雨-51CTO博客

 6 years ago
source link: http://blog.51cto.com/13399294/2068614
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
创建授权MySQL授权库和表信息授权库mysql,主要的几个表:1.user表,存储授权用户的防护权限。2.db表,存储授权用户对数据库的访问权限。3.tables_priv表,存储授权用户对表的访问权限。4.columns_priv表,存储授权用户对字段的访问权限。GRANT 配置授权格式:GRANT 权限列表... ON 库名.表名 TO 用户名@'客户端地址' IDENTIFIED BY '密码' WITH GRANT OPTION;-[WITH GRANT OPTION]被授权用户是否有授权权限(可选项)注意事项:1.当库名.表名为“.”时,匹配所有库所有表。2.授权设置存放在mysql库的user表。 授权列表: all 所有权限 usage 没有权限 selec 查看权限 update 修改权限 delect 删除权限 insert 写入权限 drop 删除权限 ... 库名.表名: 库名.* //库下的所有表 *.* //所有库下的所有表客户端地址:% //

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK