Inception介紹(MySQL自動化運維工具)

Inception介紹

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++

 

Inception安裝(centos 6)

一、依賴包安裝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;

輸出了全部的變量,表示已經啓動成功了。

相關文章
相關標籤/搜索