From d6930747669907c2d66125a8241a41b86e9a6d1e Mon Sep 17 00:00:00 2001 From: sstidl Date: Sat, 10 Aug 2024 09:07:43 +0000 Subject: [PATCH] fix: mysqlsetting were used for mssql --- doc.md | 2 +- results/telemetry_db.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc.md b/doc.md index 0cada77ea..aeb657d4e 100755 --- a/doc.md +++ b/doc.md @@ -77,7 +77,7 @@ To use this function, you will need a database. The test supports MySQL, Postgre This step is only required for MySQL, PostgreSQL and MSSQL. If you want to use SQLite, skip to the next step. -Log into your database using phpMyAdmin or a similar software and create a new database. Inside the `results` folder you will find `telemetry_mysql.sql`, `telemetry_postgresql.sql` and `telemetry_mssql.sql`, which are templates for MySQL and PostgreSQL respectively. Import the one you need, and you will see a `speedtest_users` table in the database. You can delete the templates afterwards. +Log into your database using phpMyAdmin or a similar software and create a new database. Inside the `results` folder you will find `telemetry_mysql.sql`, `telemetry_postgresql.sql` and `telemetry_mssql.sql`, which are templates for MySQL, PostgreSQL and MSSQL respectively. Import the one you need, and you will see a `speedtest_users` table in the database. You can delete the templates afterwards. ##### Configuring telemetry diff --git a/results/telemetry_db.php b/results/telemetry_db.php index 2cc3b6163..b5db86b5a 100755 --- a/results/telemetry_db.php +++ b/results/telemetry_db.php @@ -70,7 +70,7 @@ function getPdo($returnErrorMessage = false) if($MsSql_WindowsAuthentication){ return new PDO($dsn, "", "", $pdoOptions); } else { - return new PDO($dsn, $MySql_username, $MySql_password, $pdoOptions); + return new PDO($dsn, $MsSql_username, $MsSql_password, $pdoOptions); } }