Giter VIP home page Giter VIP logo

inception_web's Introduction

Inception_web

本系统是MySQL自动化管理工具,配合Inception使用,基于archer进行二次开发,进行了一些补充优化。

功能说明:

  • SQL自主审核
  • 自动审核+人工审核
  • 定时执行SQL
  • 主副人工审核(可配置)
  • 回滚sql下载
  • 数据库配置
  • 用户权限配置
  • 用户分配数据库权限
  • 工单查询管理
  • 工单邮件通知
  • 查看慢查询
  • MySQLTuner生成配置分析报告(需安装perl)
  • SQLAdvisor语句优化功能(安装模块)

配置文件:

config.py

安装配置:

要求:python2.7
建议系统环境:CentOS 7/Ubuntu 14+

1.安装MySQL 5.6+数据库,用于存放系统数据和回滚sql。
建立数据库和用户:
create database inception_web character set utf8;
grant all privileges on *.* to inception_web@'%' identified by 'inception_web';
flush privileges;

2.安装Inception(参考文档:http://mysql-inception.github.io/inception-document/install/
inc.cnf使用之前创建的mysql主机帐号密码

3.下载系统源码
git clone https://github.com/496080199/inception_web.git
或使用zip包下载

3.安装python2.7依赖
安装pip工具,具体网上搜索(下载配置加速可参见https://pypi-mirrors.org/
cd inception_web
pip install -r requirements.txt

4.配置修改
复制config_example.py为config.py
根据自己的环境进行相应修改config.py中参数
注:查看慢查询需设置mysql的参数log_output=table将慢查询记录输出到mysql库的slow_log表中

5.启动运行
测试环境:
chmod +x debug.sh
./debug.sh

生产环境:
chmod +x start.sh stop.sh
pip install gunicorn
启动:./start.sh
关闭:./stop.sh

6.访问

http://(部署服务器IP):5000/login
初始帐号密码:admin/admin
注:防火墙端口5000需要放开

7.依次添加数据库,开发人员(分配数据库),审核人员,开始工作。

8.模块安装
SQLAdvisor安装:
下载 https://github.com/Meituan-Dianping/SQLAdvisor/archive/master.zip 压缩包放至本系统根目录下,
即可通过模块管理进行安装,安装需要几分钟,请耐心等待后刷新页面看到。



-------有更多idea欢迎和我一起交流分享,谢谢!我的QQ:496080199

设计原理来源于archer,请大家多关注
https://github.com/jly8866/archer

## 系统截图:
1. 发起sql工单页:

image

  1. 工单图表页:

image

  1. 工单处理页:

image

  1. 工单查询页:

image

  1. 待审核工单页:

image

  1. 登陆页:

image

  1. 管理员主页:

image

  1. mysqltuner配置分析报告:

image

  1. SQLAdvisor语句优化:

image

inception_web's People

Contributors

496080199 avatar

Watchers

James Cloos avatar Jason avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.