a亚洲精品_精品国产91乱码一区二区三区_亚洲精品在线免费观看视频_欧美日韩亚洲国产综合_久久久久久久久久久成人_在线区

首頁 > 數據庫 > 文庫 > 正文

Inception部署測驗

2024-09-07 22:12:43
字體:
來源:轉載
供稿:網友
      如果你想學習inception
      如果你想學習flask~
     那么此篇文章適合你~
 
1、下載
 
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)) 

(編輯:武林網)

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 久久久久国产精品午夜一区 | 成人在线播放 | 欧美一区二区三区在线 | 亚洲精品久久久 | 国产高清精品一区 | 在线色网 | 亚洲精品一区二区三区蜜桃久 | av电影手机在线看 | 国产精品自产拍 | 在线免费看黄色 | 亚洲乱码一区二区三区在线观看 | 热99re久久免费视精品频软件 | 在线第一页 | 亚洲电影免费 | 色av综合在线 | 国产一区二区三区在线免费观看 | 综合色婷婷一区二区亚洲欧美国产 | 国产精品入口久久 | 国产在线观看91一区二区三区 | 可以免费在线看黄的网站 | 午夜影院普通用户体验区 | 日韩中字在线观看 | 精品国产成人 | 欧美一区二区三区aa大片漫 | 绯色av一区二区三区在线高清 | 四虎影音| 欧美日韩成人在线视频 | 亚洲不卡在线 | 日韩成人视屏 | 日韩欧美一级在线 | 精品久久一区二区三区 | 欧美激情精品久久久久 | 国产一区二区在线不卡 | 久久精品 | 国产精品美女久久久 | 91嫩草在线 | 国产高清网站 | 欧美日韩在线观看中文字幕 | 啪啪免费网站 | 国产精品美女久久久久久不卡 | 日韩精品一区二区三区第95 |