1.5 洞察1数据迁移

(1) 配置文件修改

DEBUG = True
# 服务默认端口
PORT = 8000
# 数据库配置
DB_HOST = 'web_mysql'
DB_PORT = 3306
DB_NAME = 'insight2'
DB_USER = 'root'
DB_PASS = 'crediteaseitsec'

...

# 配置成洞察1数据库信息。
FROM_DB = dict(
            host = 'web_mysql',
            port = 3306,
            user = "root",
            password = "crediteaseitsec",
            database = "insight"
        )

(2) Mysql数据库初始化

myql -u user -p password -h host < init/init.sql

(3) 数据迁移执行命令

python run.py --init=data
Copyright Cesec Dev Team 2020 all right reserved,powered by Gitbook该文章修订时间: 2020-06-29 14:13:01

results matching ""

    No results matching ""