Skip to content

Conversation

@liuhill
Copy link
Contributor

@liuhill liuhill commented Oct 30, 2025

Description

 When attempting to configure data sources for DB-GPT using environment variables (env), an error is thrown, preventing successful connection to the target data source and disrupting core functionality. This issue occurred due to improper parsing of env variables, missing validation for required configuration fields, or incorrect mapping between env entries and the application’s data source configuration logic.
  This PR addresses the root cause of the env-based data source configuration failure, ensuring users can reliably set up data sources via environment variables without errors.

How Has This Been Tested?

  • configure .env file
MYSQL_PASSWORD=123456
  • Then run the following command to start the webserver:
    uv run --env-file .env dbgpt start webserver --config dbgpt-proxy-siliconflow-mysql.toml

  • Verified successful data source connection and query execution after applying env configurations.

Snapshots:

截屏2025-10-30 20 31 25

@github-actions github-actions bot added the fix Bug fixes label Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant