mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #4708] [CLOSED] feat: support mysql. #44589
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/4708
Author: @zy526
Created: 8/18/2024
Status: ❌ Closed
Base:
dev← Head:support-mysql📝 Commits (1)
b171023feat: support mysql.📊 Changes
8 files changed (+50 additions, -10 deletions)
View changed files
📝
backend/apps/webui/internal/migrations/007_add_user_last_active_at.py(+23 -4)📝
backend/apps/webui/internal/migrations/009_add_models.py(+1 -1)📝
backend/apps/webui/internal/migrations/012_add_tools.py(+1 -1)📝
backend/apps/webui/internal/migrations/014_add_files.py(+1 -1)📝
backend/apps/webui/internal/migrations/015_add_functions.py(+1 -1)📝
backend/apps/webui/internal/migrations/017_add_user_oauth_sub.py(+1 -1)📝
backend/apps/webui/internal/wrappers.py(+21 -1)📝
backend/requirements.txt(+1 -0)📄 Description
Pull Request Checklist
devbranch.Changelog Entry
Description
This pull request enhances to support mysql database besides sqlite and postgres. It'll solve the problem or feedback of the below discussions
How to use MySQL as database not noly sqlite.
Failed to start with mysql
Is possible to customize the OpenWebUI application database and Chrom
May I ask if I can use an external MySQL to store data?
Changed
Additional Information
To use mysql database, just like using postgres, specify the DATABASE_URL as mysql://username:passwd@host:port/database
Screenshots or Videos
Please refer testing screenshots:
For sqlite:


For postgresql:



For mysql:



🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.