千家信息网

Inception部署测试

发表于:2026-11-02 作者:千家信息网编辑
千家信息网最后更新 2026年11月02日,欢迎转载,请注明作者、出处。 作者:刘春雷 blog:http://blog.itpub.net/28823725/如有疑问,欢迎留言~ Inception部署测试 --刘春雷 20170801如果你
千家信息网最后更新 2026年11月02日Inception部署测试欢迎转载,请注明作者、出处。 作者:刘春雷 blog:http://blog.itpub.net/28823725/
如有疑问,欢迎留言~

Inception部署测试
--刘春雷 20170801

如果你想学习inception 如果你想学习flask~ 那么此篇文章适合你~

1、下载

https://github.com/mysql-inception/inception

2、安装

yum -y install cmake libncurses5-dev libssl-dev g++ bison openssl-devel.x86_64
unzip inception-master.zip
cd inception-master sh -x inception_build.sh debug

cd /chunlei/inception/inception
mkdir log
mkdir etc
cd etc 安装完毕后添加配置文件:
vim inc.cnf [inception] general_log=1 general_log_file=/chunlei/inception/inception/log/inception.log port=7001 socket=/chunlei/inception/inception/inc.socket character-set-client-handshake=0 character-set-server=utf8 inception_remote_system_password=123456 inception_remote_system_user=root inception_remote_backup_port=6001 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=/chunlei/osc inception_osc_chunk_time=0.1 inception_ddl_support=1 inception_enable_blob_type=1 inception_check_column_default_value=1

3、启动

/chunlei/inception/inception-master/debug/mysql/bin/Inception --defaults-file=/chunlei/inception/inception/etc/inc.cnf &

登录:
mysql -uroot -h227.0.0.1 -P7001
elcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: Inception2.1.50 1
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> inception get variables; 测试


4、界面

界面化:网上有封装好的flask 在网上下载一个web封装的界面安装过程如下: 下载地址:https://github.com/dbalihui/inception_web
安装flask easy_install flask

easy_install flask_wtf

easy_install flask-script

easy_install flask-debugtoolbar

数据库建立库: create database sql_check 创建用户: GRANT ALL PRIVILEGES ON *.* TO 'dba'@'%' identified by '123456'

修改配置文件 cd /chunlei/inception/flask/inception_web-master/app vi inception.py 修改: conn=MySQLdb.connect(host='127.0.0.1',user='dba',passwd='123456',db='sql_check',port=7001,use_unicode=True, charset="utf8")
运行: ./run.py runserver --host 172.16.16.2
http://182.61.39.142:5000/
测试: create table test1 (id int auto_increment,name varchar(10),primary key(id))



测试 界面 作者 文件 刘春 刘春雷 学习 封装 配置 出处 地址 数据 数据库 用户 疑问 篇文章 过程 登录 运行 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 精品咖啡豆 互联网加科技 百单网互联网科技有限公司怎么样 互联网科技工作委员会主任 高科技与互联网 青岛互联网科技公司 齐家互联网科技 百单互联网科技有限公司 银优互联网科技有限公司 国外互联网科技网站 深圳市运趣互联网科技有限公司 深圳国际航运科技和互联网 宜昌元轩互联网科技有限公司 洛阳昕诺飞互联网科技有限公司 长沙茂晟互联网科技有限公司 伍佰万互联网科技怎么赚钱 半导体是互联网高科技吗 广州梦谷互联网科技有限公司领导 万物互联网智能科技 六子台科技互联网展会 互联网科技公司经营范围 互联网品科技 关于新基建和互联网科技 现代科技和互联网有关系吗 恒生互联网科技指数跳水 佛山市翊博互联网络科技有限公司 梅州GM互联网络科技有限公司 广州梦谷互联网科技有限公司领导 互联网高科技行业有哪些企业 保山浩联互联网科技有限公司
0