摘要: 1 app.py 2 models.py 3 views.py 4 sqlalchemy的外键建立 基本结构(看models.py): 如何建立外键关联: 对用户进行分类,用户要关联分类表,用户表要建立关于分类的关联,被关联的分类表什么都不用做: category_id = db.Column(db 阅读全文
posted @ 2019-01-11 17:50 Adamanter 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 1 手动备份 mongo3.0手动备份命令:mongodump -h localhost:27017 --authenticationDatabase "admin" -o /data/backup/dump/2019_01_09 mongorestore -h localhost:27017 /d 阅读全文
posted @ 2019-01-11 10:49 Adamanter 阅读(2127) 评论(0) 推荐(0) 编辑