MySQL社区

标题: MySQL安全和管理 [打印本页]

作者: hm3030    时间: 2012-6-15 16:35
标题: MySQL安全和管理
本帖最后由 hm3030 于 2012-6-15 16:40 编辑

目的:

安装安全:

                  hack MySQL:


                   破坏MySQL:

操作系统


chown -R root:root PATH/mysql
chown -R mysql:mysql PATH/mysql/{data,log,binlog,etc}
chmod 700 PATH/mysql/{data,binlog}
chmod 750 PATH/mysql/{etc,log}
权限和特权

create user admin@localhost identified by 'admin_password';
grant  create,select,insert,update,delete on db.* to admin@localhost;

                               create user super_user@'%';
                               grant all on *.* to super_user@'%';
                                *.*       让你可以访问所以库里面所以表
                                 @‘%’     让你可以从任何外部位置访问
                                 All         授予你所以权限
数据一致性(data in != data out?)  

审计
总结:

不涵盖:


                                          





欢迎光临 MySQL社区 (http://www.mysqlpub.com/) Powered by Discuz! X3.2