GitHub:https://github.com/mysql-inception/inceptionpython
文档:https://mysql-inception.github.io/inception-document/install/mysql
Inception是集审核、执行、回滚于一体的一个自动化运维系统,它是根据MySQL代码修改过来的,用它能够很明确的,详细的,准确的审核MySQL的SQL语句,它的工做模式和MySQL彻底相同,能够直接使用MySQL客户端来链接,但不须要验证权限,它相对应用程序(上层审核流程系统等)而言,是一个服务器,在链接时须要指定服务器地址及Inception服务器的端口便可,而它相对要审核或执行的语句所对应的线上MySQL服务器来讲,是一个客户端,它在内部须要实时的链接数据库服务器来获取所须要的信息,或者直接在在线上执行相应的语句及获取binlog等,Inception就是一个中间性质的服务。c++
一、依赖包安装git
yum install gcc gcc-c++ cmake bison openssl-devel ncurses-devel MySQL-python git -y
二、mysql client 安装github
https://dev.mysql.com/downloads/repo/yum/ 下载yum库mysql57-community-release-el6-11.noarch.rpmsql
rpm -ivh mysql57-community-release-el6-11.noarch.rpm
yum list|grep mysql57
yum install mysql-community-client
三、Git下载源码包数据库
git clone https://github.com/mysql-inception/inception.git
四、编译安装centos
cd inception sh inception_build.sh debug
五、建立配置文件bash
vi /etc/inc.cnf [inception] general_log=1 general_log_file=inception.log port=6669 socket=/tmp/inc.socket character-set-client-handshake=0 character-set-server=utf8 inception_remote_system_password=root inception_remote_system_user=wzf1 inception_remote_backup_port=3306 inception_remote_backup_host=127.0.0.1 inception_support_charset=utf8mb4 inception_enable_nullable=0 inception_check_primary_key=1 inception_check_column_comment=1 inception_check_table_comment=1 inception_osc_min_table_size=1 inception_osc_bin_dir=/data/temp inception_osc_chunk_time=0.1 inception_enable_blob_type=1 inception_check_column_default_value=1
五、启动Inception程序服务器
nohup /root/inception/debug/mysql/bin/Inception --defaults-file=/etc/inc.cnf --port=6669 &
六、测试
mysql -uroot -h127.0.0.1 -P6669
链接成功后执行 inception get variables;
输出了全部的变量,表示已经启动成功了。