mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-15 16:07:03 +08:00
Fix: Check MySQL database name (#5991)
This commit is contained in:
@@ -208,11 +208,13 @@ class SetupDatabase {
|
||||
|
||||
// Test connection
|
||||
try {
|
||||
log.info("setup-database", "Testing database connection...");
|
||||
const connection = await mysql.createConnection({
|
||||
host: dbConfig.hostname,
|
||||
port: dbConfig.port,
|
||||
user: dbConfig.username,
|
||||
password: dbConfig.password,
|
||||
database: dbConfig.dbName,
|
||||
});
|
||||
await connection.execute("SELECT 1");
|
||||
connection.end();
|
||||
|
Reference in New Issue
Block a user