mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #3024] [MERGED] feat: Add MySQL database support #5330
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5330
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/MHSanaei/3x-ui/pull/3024
Author: @aliglzr
Created: 5/19/2025
Status: ✅ Merged
Merged: 5/21/2025
Merged by: @MHSanaei
Base:
mysql← Head:main📝 Commits (2)
4d50320feat: Add MySQL database supporte78f20arefactor: prefix env variables of database with XUI_ to support direct environment usage without .env file📊 Changes
10 files changed (+239 additions, -52 deletions)
View changed files
➕
.env.example(+8 -0)📝
config/config.go(+49 -0)📝
database/db.go(+29 -9)📝
database/model/model.go(+1 -1)📝
go.mod(+2 -0)📝
go.sum(+5 -0)📝
main.go(+1 -0)📝
sub/subService.go(+58 -16)📝
web/service/inbound.go(+84 -24)📝
web/service/setting.go(+2 -2)📄 Description
What is the pull request?
This pull request adds MySQL database support to the application while maintaining SQLite as the default database. The changes include:
Which part of the application is affected by the change?
Type of Changes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.