updated database

This commit is contained in:
nengyuanzhang 2024-12-22 11:43:04 +08:00
parent 9ca5a5821d
commit 3e60638e5d
6 changed files with 56 additions and 32 deletions

View File

@ -24,9 +24,6 @@ Execute the following scripts in MySQL commandline, or execute in other MySQL cl
cd ~/myems/database/install
```
```bash
mysql -u root -p < myems_billing_baseline_db.sql
```
```bash
mysql -u root -p < myems_billing_db.sql
```
```bash
@ -42,6 +39,12 @@ mysql -u root -p < myems_energy_db.sql
mysql -u root -p < myems_energy_model_db.sql
```
```bash
mysql -u root -p < myems_energy_plan_db.sql
```
```bash
mysql -u root -p < myems_energy_prediction_db.sql
```
```bash
mysql -u root -p < myems_fdd_db.sql
```
```bash
@ -141,8 +144,6 @@ The detail database definition is available with the enterprise edition.
:::
#### myems_billing_baseline_db
#### myems_billing_db
#### myems_carbon_db
@ -153,6 +154,10 @@ The detail database definition is available with the enterprise edition.
#### myems_energy_model_db
#### myems_energy_plan_db
#### myems_energy_prediction_db
#### myems_fdd_db
#### myems_historical_db

View File

@ -31,7 +31,7 @@ The host refers to the server on which the docker engine runs. The IP and accoun
1. Clone repository
```bash
git clone https://github.com/myems/myems.git
git clone https://github.com/myems/myems.git
```
2. Import database schema
@ -40,9 +40,6 @@ git clone https://github.com/myems/myems.git
cd myems/database/install
```
```bash
mysql -u root -p < myems_billing_baseline_db.sql
```
```bash
mysql -u root -p < myems_billing_db.sql
```
```bash
@ -58,6 +55,12 @@ mysql -u root -p < myems_energy_db.sql
mysql -u root -p < myems_energy_model_db.sql
```
```bash
mysql -u root -p < myems_energy_plan_db.sql
```
```bash
mysql -u root -p < myems_energy_prediction_db.sql
```
```bash
mysql -u root -p < myems_fdd_db.sql
```
```bash
@ -129,7 +132,7 @@ nano myems-modbus-tcp/.env
cp myems-normalization/example.env myems-normalization/.env
```
```bash
nano myems-normalization/.env
nano myems-normalization/.env
```
3.3 Modify upload folder in docker-compose.yml
@ -156,7 +159,7 @@ On Windows Host:
cd myems
```
```bash
docker-compose -f docker-compose-on-windows.yml up -d
docker-compose -f docker-compose-on-windows.yml up -d
```
On Linux Host:
@ -165,7 +168,7 @@ On Linux Host:
cd myems
```
```bash
docker-compose -f docker-compose-on-linux.yml up -d
docker-compose -f docker-compose-on-linux.yml up -d
```
6. Verification

View File

@ -25,9 +25,6 @@ Führen Sie die folgenden Skripte in der MySQL-Kommandozeile aus oder führen Si
cd ~/myems/database/install
```
```bash
mysql -u root -p < myems_billing_baseline_db.sql
```
```bash
mysql -u root -p < myems_billing_db.sql
```
```bash
@ -43,6 +40,12 @@ mysql -u root -p < myems_energy_db.sql
mysql -u root -p < myems_energy_model_db.sql
```
```bash
mysql -u root -p < myems_energy_plan_db.sql
```
```bash
mysql -u root -p < myems_energy_prediction_db.sql
```
```bash
mysql -u root -p < myems_fdd_db.sql
```
```bash
@ -144,8 +147,6 @@ Die Definition der Detaildatenbank ist mit der Enterprise Edition verfügbar.
:::
#### myems_billing_baseline_db
#### myems_billing_db
#### myems_carbon_db
@ -156,6 +157,10 @@ Die Definition der Detaildatenbank ist mit der Enterprise Edition verfügbar.
#### myems_energy_model_db
#### myems_energy_plan_db
#### myems_energy_prediction_db
#### myems_fdd_db
#### myems_historical_db

View File

@ -31,7 +31,7 @@ Der Host bezieht sich auf den Server, auf dem Docker-Engine läuft. Bitte änder
1. Repository klonen
```bash
git clone https://github.com/myems/myems.git
git clone https://github.com/myems/myems.git
```
2. Datenbankschema importieren
@ -40,9 +40,6 @@ git clone https://github.com/myems/myems.git
cd myems/database/install
```
```bash
mysql -u root -p < myems_billing_baseline_db.sql
```
```bash
mysql -u root -p < myems_billing_db.sql
```
```bash
@ -58,6 +55,12 @@ mysql -u root -p < myems_energy_db.sql
mysql -u root -p < myems_energy_model_db.sql
```
```bash
mysql -u root -p < myems_energy_plan_db.sql
```
```bash
mysql -u root -p < myems_energy_prediction_db.sql
```
```bash
mysql -u root -p < myems_fdd_db.sql
```
```bash
@ -129,7 +132,7 @@ nano myems-modbus-tcp/.env
cp myems-normalization/example.env myems-normalization/.env
```
```bash
nano myems-normalization/.env
nano myems-normalization/.env
```
3.3 Upload-Ordner ändern in docker-compose.yml
@ -156,7 +159,7 @@ On Windows Host:
cd myems
```
```bash
docker-compose -f docker-compose-on-windows.yml up -d
docker-compose -f docker-compose-on-windows.yml up -d
```
On Linux Host:
@ -165,7 +168,7 @@ On Linux Host:
cd myems
```
```bash
docker-compose -f docker-compose-on-linux.yml up -d
docker-compose -f docker-compose-on-linux.yml up -d
```
6. Verification

View File

@ -25,9 +25,6 @@ MyEMS可以运行在以下MySQL兼容的数据库服务器。
cd ~/myems/database/install
```
```bash
mysql -u root -p < myems_billing_baseline_db.sql
```
```bash
mysql -u root -p < myems_billing_db.sql
```
```bash
@ -43,6 +40,12 @@ mysql -u root -p < myems_energy_db.sql
mysql -u root -p < myems_energy_model_db.sql
```
```bash
mysql -u root -p < myems_energy_plan_db.sql
```
```bash
mysql -u root -p < myems_energy_prediction_db.sql
```
```bash
mysql -u root -p < myems_fdd_db.sql
```
```bash
@ -143,8 +146,6 @@ set global max_allowed_packet=1000000000;
:::
#### myems_billing_baseline_db
#### myems_billing_db
#### myems_carbon_db
@ -155,6 +156,10 @@ set global max_allowed_packet=1000000000;
#### myems_energy_model_db
#### myems_energy_plan_db
#### myems_energy_prediction_db
#### myems_fdd_db
#### myems_historical_db

View File

@ -40,9 +40,6 @@ git clone https://gitee.com/myems/myems.git
cd myems/database/install
```
```bash
mysql -u root -p < myems_billing_baseline_db.sql
```
```bash
mysql -u root -p < myems_billing_db.sql
```
```bash
@ -58,6 +55,12 @@ mysql -u root -p < myems_energy_db.sql
mysql -u root -p < myems_energy_model_db.sql
```
```bash
mysql -u root -p < myems_energy_plan_db.sql
```
```bash
mysql -u root -p < myems_energy_prediction_db.sql
```
```bash
mysql -u root -p < myems_fdd_db.sql
```
```bash