Inception
Contents
安装Inception
1 | $ yum install bison cmake ncurses-devel openssl-devel libgcc gcc gcc-c++ git **/ http://ftp.gnu.org/gnu/bison/ |
配置Inception
1 | $ vi /var/inception/bin/inc.cnf |
启动Inception
两种启动方式:
- /var/inception/bin/Inception --defaults-file=inc.cnf
- /var/inception/bin/Inception --port=6669
1 | $ nohup /var/inception/bin/Inception --defaults-file=inc.cnf > /tmp/inception.out 2>&1 & |
线上配置
- 线上服务器开启 Binlog。
- binlog_format=row/mined
- binlog_row_image=full
- server_id !=0/1
- Private account for Inception and Specify related privileges(Read-only / Write):
+
mysql> grant SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, PROCESS, ALTER, SUPER, REPLICATION SLAVE, REPLICATION CLIENT, TRIGGER on *.* to 'winception'@'%' identified by 'Acqua@107';
- Primary KEY
DML & DDL
Executed Separately.
使用Inception
python-devel ===> MySQLdb
1 | #!/usr/bin/python |
1 | $ python inception.py |
Inception日志
1 | $ cat /var/inception/log/inception.log |
远程(10.0.77.19)备份信息
1 | mysql> show databases; |
Reference
MySQL 运维内参
Author: Acqua
Link: https://acquaai.github.io/2018/02/01/inception/
License: 知识共享署名-非商业性使用 4.0 国际许可协议