Inception介绍

MySQL Inception是数据库管理员的工具。它允许DBA构建好的SQL语句,在只读数据集上测试它们,并最终针对生产数据库运行这些SQL语句,并且能够在SQL语句出于某种原因未达到预期结果时进行回滚。

Inception下载

  • github地址

    获取 git clone https://github.com/mysql-inception/inception.git

依赖环境安装

bison

⚠️ bison最好使用2.6以前的版本,不然会出现inception版本安装失败

获取

wget http://ftp.gnu.org/gnu/bison/bison-2.5.tar.gz

安装

./configure --prefix=/usr --docdir=/usr/local/bin/bison
meke
make check
make install
#查看当前系统是否自带2.6以上的bison版本
which bison
/opt/compiler/gcc-4.8.2/bin/bison
#切换默认的bison
mv /opt/compiler/gcc-4.8.2/bin/bison /opt/compiler/gcc-4.8.2/bin/bison.3.0
mv /usr/local/bin/bison /opt/compiler/gcc-4.8.2/bin/bison

cmake

获取

wget https://cmake.org/files/v3.11/cmake-3.11.1-Linux-x86_64.tar.gz

安装

tar -zxvf cmake-3.11.1-Linux-x86_64.tar.gz
cd cmake-3.11.1
./bootstrap
gmake
gmake install
cmake --version

curses5-dev

yum install ncurses-devel.x86_64

openssl

gcc g++

Inception安装

sh inception_build.sh debug

Inception验证

启动

vim inc.cnf
[inception]
general_log=1
general_log_file=inception.log
port=6669
socket=/data/workspace/inception_data/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 debug/mysql/bin/Inception --defaults-file=inc.cnf
debug为安装的目录

连接

mysql -uroot -h127.0.0.1 -P6669

inception get variables;

问题

装完之后,yum出现问题

There was a problem importing one of the Python modules required to run yum. The error leading to this problem was:/usr/lib64/libssl.so.10: symbol private_ossl_minimum_dh_bits, version libcrypto.so.10 not defined in file libcrypto.so.10 with link time reference

Please install a package which provides this module, or verify that the module is installed correctly.

网上查询之后确定是openssl的硬连接出现问题,去目录/usr/lib64查看

ll libcrypto.*
lrwxrwxrwx 1 root root 14 Aug 24 2017 libcrypto.so.10 -> libcrypto.so.4
-rwxr-xr-x 1 root root 1971488 Mar 23 2017 libcrypto.so.1.0.1e
-rwxr-xr-x 1 root root 1967392 Aug 23 2017 libcrypto.so.4

发现 libcrypto.so.10链接的so版本不对,改为1.0.1.e

rm libcrypto.so.10
rm: remove symbolic link 'libcrypto.so.10'? yes
[root@gzhxy-bcc-init0000002774 lib64]# ll libcrypto.*
-rwxr-xr-x 1 root root 1971488 Mar 23 2017 libcrypto.so.1.0.1e
-rwxr-xr-x 1 root root 1967392 Aug 23 2017 libcrypto.so.4 ln -s libcrypto.so.1.0.1e libcrypto.so.10
[root@gzhxy-bcc-init0000002774 lib64]# ll libcrypto.*
lrwxrwxrwx 1 root root 19 Apr 26 11:25 libcrypto.so.10 -> libcrypto.so.1.0.1e
-rwxr-xr-x 1 root root 1971488 Mar 23 2017 libcrypto.so.1.0.1e
-rwxr-xr-x 1 root root 1967392 Aug 23 2017 libcrypto.so.4

重启sshd

service sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]

验证成功

yum --version
3.2.29
Installed: rpm-4.8.0-37.el6.x86_64 at 2014-09-01 09:55
Built : CentOS BuildSystem <http://bugs.centos.org> at 2013-11-22 11:38
Committed: Panu Matilainen <pmatilai@redhat.com> at 2013-09-12 Installed: yum-3.2.29-81.el6.centos.noarch at 2017-08-16 09:27
Built : CentOS BuildSystem <http://bugs.centos.org> at 2017-03-22 05:32
Committed: Johnny Hughes <johnny@centos.org> at 2017-03-21 Installed: yum-plugin-fastestmirror-1.1.30-14.el6.noarch at 2014-09-01 09:55
Built : CentOS BuildSystem <http://bugs.centos.org> at 2012-06-22 12:23
Committed: Zdenek Pavlas <zpavlas@redhat.com> at 2012-04-26

Inception体验之安装的更多相关文章

  1. Inception服务的安装以及使用Python 3 实现MySQL的审计

    Inception服务的安装以及使用Python实现MySQL的审计 Bison是Inception服务所依赖的包之一,但是某些Linux版本已安装的Bison,或者是通过yum安装的Bison,通常 ...

  2. fedora下体验gentoo安装

    服务器上安装了fedora,但是对gentoo很想体验一番,没有新机器,不想重装系统,所以只能chroot来体验getoo了. 下载portage-20130817.tar.bz2和stage3-am ...

  3. 体验devstack安装openstack

    由于公司制度,工作环境是不能直接上网的,所以在工作时间从没有体验过devstack或者其他联网方式安装openstack. 因自己购置了一台不错的主机,因而决定尝试安装一番,经过一段为期不短的内心极度 ...

  4. Git:Git初体验——Git安装配置

    作为即将成为一个程序员的男人,一直在听别人说Git多好多好,之前也随便了解了一些,但是始终没有决心去学会.现在大四了,只有毕设和一门开学六七周只去过一次课的全员必修课外,也没有什么事情做,何不去做这些 ...

  5. 【转载】MQTT学习笔记——MQTT协议体验 Mosquitto安装和使用

    http://blog.csdn.net/xukai871105/article/details/39252653 0 前言     MQTT是IBM开发的一个即时通讯协议.MQTT是面向M2M和物联 ...

  6. 树莓派初体验,安装Ubuntu 14.04 LTS

    转载自:http://www.polarxiong.com/archives/%E6%A0%91%E8%8E%93%E6%B4%BE%E5%88%9D%E4%BD%93%E9%AA%8C-%E5%AE ...

  7. VUE初体验篇-安装

    现代前端框架大行其道,讲前端思想从操作dom的阶段,升级到操作数据的阶段.vue作为三大前端框架之一,其中平缓的学习曲线,让好多前端新手非常喜欢,应用也越来越广泛.虽然其他两个框架有facebook, ...

  8. 【Node.js】初体验之安装和HelloWorld

    听说Node.js是个蛮吊的东东.中午休息时间有限,暂时看了下知道怎么安装和初步使用了. 1.安装: 到Node.js官网下载就可以了,才5M多点,双击后按步骤安装就可以了. 2."Hell ...

  9. 快速体验openstack-用devstack安装openstack

    官网安装说明: --2014年11月15日14:14:21 安装环境:Ubuntu12.04,安装官网的说明遇到了小问题,记录在这里 --http://docs.openstack.org/devel ...

随机推荐

  1. C# 中的线程安全集合类

    C# 的集合类型中, 都有Synchronized静态方法, 和SyncRoot实例方法 对于ArrayList以及Hashtable 集合类来讲,当需要做到线程安全的时候,最好利用其自带的属性Syn ...

  2. RunTime运行时在iOS中的应用之UITextField占位符placeholder

    RunTime运行时机制 runtime是一套比较底层的纯C语言API, 属于1个C语言库, 包含了很多底层的C语言API. 在我们平时编写的Objective-C代码中, 程序运行过程时, 其实最终 ...

  3. Orcale 存储过程实践总结

    由于项目中用到存储过程,这两天把存储过程方面的知识简单回顾了一下并分享给大家. 编写第一个存储过程 create or replace procedure ky_proc_in_out(para3 i ...

  4. 模拟IC芯片设计开发的流程

    模拟IC芯片设计开发的流程 IC的设计,模拟和数字, 还有混合IC, 在设计方法, 注意点, 工具等有明显的区别, 我主要以模拟无线接收IC系统设计为例说明. 一个IC芯片的设计开发大致包括如下步骤. ...

  5. JVM的运行原理以及JDK 7增加的新特性(二)

    JVM结构 Java编写的代码会按照下图的流程来执行 类装载器装载负责装载编译后的字节码,并加载到运行时数据区(Runtime Data Area),然后执行引擎执行会执行这些字节码. 类加载器(Cl ...

  6. java核心卷轴之集合

    1. Iterator 1.1 注意事项 接口的remove方法将删除上次调用next方式时返回的对象,即:remove之前,必须有next(先获取,再删除). 1.2 例一:删除字符串集合中的第一个 ...

  7. Day18 Django的深入使用

    在向某一个数据库中插入表的时候,应该在项目下面的models里边写入: class book(models,Model): #book代指的是表名 id=models.AutoField(primar ...

  8. linux配置https站点

    配置https站点呢,那就需要https证书,证书从何而来,花钱买?no,no,no,阿里有免费的,只是比较难发现,下面就图文解说一下怎么买免费的阿里https证书 首先阿里云,登录,购买链接———— ...

  9. java中Collections.sort()方法实现集合排序

    1.Integer/String泛型的List进行排序 List <Integer> integerlist = new ArrayList<Integer>();   //定 ...

  10. 类设计:设计卖车的4S店

    class Car(object): # 定义车的方法 def move(self): print('---车在移动---') def stop(self): print('---停车---') # ...