轻量级的SQL审核和执行平台,支持回滚SQL功能
- 目前还不支持pt-osc的执行
- 权限功能不完善
安装还是看文档吧
http://mysql-inception.github.io/inception-document/inception/
-- 创建inception用户
grant all on *.* to yangcg@'%' identified by 'yangcaogui';
- python2.7的环境
- 调用inception只能使用MySQLdb
- yum -y install python-devel python-setuptools
- easy_install pip
- pip install flask flask-login threadpool pymysql DBUtils six packaging appdirs mysql-python
mysql -h -u -p -P < table.sql
修改inception的服务地址:
inception_host = "192.168.11.101"
inception_port = 6669
inception_user = "yangcg"
inception_password = "yangcaogui"
修改MySQL数据库的地址:
MySQL_HOST = common_util.Entity()
MySQL_HOST.key = 99999
MySQL_HOST.host = "192.168.11.101"
MySQL_HOST.port = 3306
MySQL_HOST.user = "yangcg"
MySQL_HOST.password = "yangcaogui"
python mysql_audit.py runserver
nohup python mysql_audit.py runserver &
http://192.168.1.101:5200/login
超级管理员登录:
- 用户名:admin
- 密码:yang123!.+
- 表必须有主键
- 必须开启binlog日志
- binlog_row_image必须为FULL
- 必须使用参数--enable-remote-backup才能备份
- QQ:779647966
- Email:[email protected]