feat:set both mysql and pg configs in .env #204

Closed
opened 2026-02-16 00:20:29 -05:00 by yindo · 0 comments
Owner

Originally created by @longbingljw on GitHub (Nov 1, 2025).

Self Checks

To make sure we get to you in time, please check the following :)

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • "Please do not modify this template :) and fill in all the required fields."

Is your feature request related to a problem? Please describe.
I am adapting mysql for dify.I found that dify-plugin-daemon's db connection message is not east to switch in docker-compose.yaml.So I think it is a good idea to set both mysql config and pg config in .env.example.So user can only change DB_TYPE to switch db config for plugin-daemon.

Describe the solution you'd like
Set separate USERNAME, PASSWORD, HOST, and PORT for both PostgreSQL and MySQL in the .env file, and use DB_TYPE to control which set of credentials to use for the database connection.

Describe alternatives you've considered
No.

Additional context
I hope this feat can be handle as fast as passible.

Originally created by @longbingljw on GitHub (Nov 1, 2025). **Self Checks** To make sure we get to you in time, please check the following :) - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify-plugin-daemon/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] "Please do not modify this template :) and fill in all the required fields." **Is your feature request related to a problem? Please describe.** I am adapting mysql for dify.I found that dify-plugin-daemon's db connection message is not east to switch in docker-compose.yaml.So I think it is a good idea to set both mysql config and pg config in .env.example.So user can only change DB_TYPE to switch db config for plugin-daemon. **Describe the solution you'd like** Set separate USERNAME, PASSWORD, HOST, and PORT for both PostgreSQL and MySQL in the .env file, and use DB_TYPE to control which set of credentials to use for the database connection. **Describe alternatives you've considered** No. **Additional context** I hope this feat can be handle as fast as passible.
yindo closed this issue 2026-02-16 00:20:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#204