fix: mysql in docker (#216)

* fix(database): Implement dynamic database connector selection

* refactor: Convert database detection messages to English

* chore: add mysql2 dependency

* Update docker-compose.yml

---------

Co-authored-by: Ou <[email protected]>
This commit is contained in:
521141
2025-08-12 23:21:35 +08:00
committed by GitHub
co-authored by Ou
parent d1fc4f1410
commit f8579bbe4f
5 changed files with 47 additions and 21 deletions
+2 -2
View File
@@ -11,10 +11,10 @@ function isMySQLDatabase(): boolean {
process.env.MYSQL_DATABASE
if (hasMySQLConfig) {
console.log('🔍 检测到 MySQL 配置,使用 MySQL 数据库')
console.log('🔗 Using MySQL database')
return true
} else {
console.log('🔍 未检测到 MySQL 配置,使用 SQLite 数据库')
console.log('🗃️ Using SQLite database')
return false
}
}