feat(core): Support configuration metadata database name in .env file

This commit is contained in:
FangYin Cheng
2023-10-27 15:18:26 +08:00
parent da3f795d5d
commit 0e0d34d92a
22 changed files with 245 additions and 87 deletions

View File

@@ -100,7 +100,7 @@ pip install --use-pep517 fschat
```
##### Q9: alembic.util.exc.CommandError: Target database is not up to date.
delete files in `DB-GPT/pilot/meta_data/alembic/versions/` and reboot.
delete files in `DB-GPT/pilot/meta_data/alembic/versions/` and restart.
```commandline
rm -rf DB-GPT/pilot/meta_data/alembic/versions/*
rm -rf DB-GPT/pilot/meta_data/alembic/dbgpt.db

View File

@@ -72,7 +72,7 @@ $ mysql -h127.0.0.1 -uroot -paa12345678 < ./assets/schema/knowledge_management.s
##### Q6:when pull from 0.4.0, I found historical knowledge document disappeared
In version 0.4.0, the metadata module of the DB-GPT application has been refactored. All metadata tables will now be automatically saved in the 'dbgpt' database, based on the database type specified in the .env file. If you would like to retain the existing data, it is recommended to use a data migration tool to transfer the database table information to the 'dbgpt' database.
In version 0.4.0, the metadata module of the DB-GPT application has been refactored. All metadata tables will now be automatically saved in the 'dbgpt' database, based on the database type specified in the `.env` file. If you would like to retain the existing data, it is recommended to use a data migration tool to transfer the database table information to the 'dbgpt' database. Additionally, you can change the default database name 'dbgpt' in your `.env` file.
```{tip}
old database:knowledge_management;
@@ -89,5 +89,6 @@ LOCAL_DB_USER=root
LOCAL_DB_PASSWORD=aa12345678
LOCAL_DB_HOST=127.0.0.1
LOCAL_DB_PORT=3306
```
# You can change it to your actual metadata database name
LOCAL_DB_NAME=dbgpt
```

View File

@@ -143,8 +143,8 @@ msgstr ""
#: ../../getting_started/faq/deploy/deploy_faq.md:103
#: 223026d3b9124363b695937922d8f8d5
msgid "delete files in `DB-GPT/pilot/meta_data/alembic/versions/` and reboot."
msgstr "删除`DB-GPT/pilot/meta_data/alembic/versions/`目录下文件"
msgid "delete files in `DB-GPT/pilot/meta_data/alembic/versions/` and restart."
msgstr "删除`DB-GPT/pilot/meta_data/alembic/versions/`目录下文件然后重新启动"
#~ msgid ""
#~ "Q2: When use Mysql, Access denied "