forked from frankie-huang/pythonMySQL
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
Latest commit
22 lines (20 loc) · 751 Bytes
/
Copy pathconfig.py
File metadata and controls
22 lines (20 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- coding: utf-8 -*-
# 数据库配置信息
CONFIG= {
# 数据库默认配置信息,必选,且索引必须为0
0 : {
"host": '127.0.0.1', # 可选,默认127.0.0.1
"user": 'root', # 可选,默认root
'password': 'root123', # 必选
'database': 'poitype_service', # 必选
'port': '3306', # 可选,默认3306
'dbms': 'mysql', # 可选,默认mysql
'charset': 'utf8', # 可选
'DB_DEBUG': True, # 可选,是否开启DEBUG模式,请在系统上线后关闭DEBUG模式
'autocommit': True# 开启自动提交事务
},
# 可选,数据库配置,'1'可以是任意字符串
'1': {
'database': 'db_name2', # 必选
},
}