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. jquery-取消冒泡

    1.通过返回false来取消默认的行为并阻止事件起泡. jQuery 代码: $("form").bind( "submit", function() { re ...

  2. 阅读spring源码

    读Spring源码之前,你要先清楚,为什么你要用Spring... Spring最基本的功能是做为管理bean的容器,所以我以为应该先从org.springframework.context包了解咯, ...

  3. Java复习2.程序内存管理

    前言: 国庆节的第三天,大家都回家了,一个人在宿舍好无聊.不过这年头与其说是出去玩不如是说出去挤,所以在学校里还是清闲的好.找工作不用担心了,到时候看着你们慢慢忙:插个话题,大学都没有恋爱过,总之各种 ...

  4. Oracle官方文档学习路线图

  5. Modelsim中使用TCL脚本编写do文件实现自动化仿真

    通常我们使用Modelsim进行仿真,是通过图形界面点点点来进行操作,殊不知Modelsim完美支持TCL脚本语言及批处理命令do文件.简单来说就是从你修改完代码后到你重新编译把需要的信号拉出来查看, ...

  6. Windows 10创意者更新ISO发布!官方下载

    http://news.mydrivers.com/1/526/526719.htm 去年7月份,微软面向Windows 10推出了“周年更新”,让系统变得更加稳定好用.今天,Windows 10迎来 ...

  7. Ubuntu硬盘空间清理

    1.删除多余的安装下载文件: sudo aptitude autoclean sudo aptitude clean 2.删除多余的内核版本: sudo apt-get autoremove 4.去/ ...

  8. Using RequireJS in AngularJS Applications

    http://www.sitepoint.com/using-requirejs-AngularJS-applications/ While writing large JavaScript appl ...

  9. 关于国际化时报org.springframework.context.NoSuchMessageException错,具体到No message found under code '你的键名' for locale 'zh_CN'.的解决方案

    使用IntelliJ IDEA开发工具解决方案: 总结原因,解决方案: 1,在使用messageSource.getMessage方法时,参数1的键名跟属性文件中键名不一致,比如Controller中 ...

  10. Ocelot中文文档-流量控制

    感谢@catcherwong 的文章激励我最终写出了这个文档 Ocelot支持上游的请求限制,以便您的下游服务不会过载. 此功能是由GitHub上的@geffzhang添加! 非常感谢. 好了,为了让 ...