fix: 更新配置文件数据库地址
This commit is contained in:
@@ -128,4 +128,10 @@ SELECT COUNT(1) FROM cdr_event_smsc WHERE TIMESTAMP >= 173972159
|
|||||||
CREATE TABLE cdr_event_smsc_bak LIKE cdr_event_smsc
|
CREATE TABLE cdr_event_smsc_bak LIKE cdr_event_smsc
|
||||||
INSERT INTO cdr_event_smsc_bak SELECT * FROM cdr_event_smsc WHERE TIMESTAMP <= 1739540000
|
INSERT INTO cdr_event_smsc_bak SELECT * FROM cdr_event_smsc WHERE TIMESTAMP <= 1739540000
|
||||||
DELETE FROM cdr_event_smsc WHERE TIMESTAMP <= 1739540000
|
DELETE FROM cdr_event_smsc WHERE TIMESTAMP <= 1739540000
|
||||||
|
|
||||||
|
# 执行数据库脚本
|
||||||
|
cd ./restagent
|
||||||
|
./restagent.exe -c ./etc/restconf.yaml --sqlPath ../database/common --sqlSource default
|
||||||
|
./restagent.exe -c ./etc/restconf.yaml --sqlPath ../database/install --sqlSource default
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ database:
|
|||||||
port: 13306
|
port: 13306
|
||||||
username: "root"
|
username: "root"
|
||||||
password: "1000omc@kp!"
|
password: "1000omc@kp!"
|
||||||
database: "omc_db_lite"
|
database: "omc_db_lichang"
|
||||||
logging: true
|
logging: true
|
||||||
# Built-in lightweight database
|
# Built-in lightweight database
|
||||||
lite:
|
lite:
|
||||||
|
|||||||
Reference in New Issue
Block a user