Skip to content

Commit 7327d2f

Browse files
authored
Merge pull request #648 from librespeed/633-invalid-username-password-variables-with-mssql-not-using-windows-authentication
fix: mysqlsetting were used for mssql
2 parents 420be5e + d693074 commit 7327d2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ To use this function, you will need a database. The test supports MySQL, Postgre
7777

7878
This step is only required for MySQL, PostgreSQL and MSSQL. If you want to use SQLite, skip to the next step.
7979

80-
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.
80+
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.
8181

8282
##### Configuring telemetry
8383

results/telemetry_db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function getPdo($returnErrorMessage = false)
7070
if($MsSql_WindowsAuthentication){
7171
return new PDO($dsn, "", "", $pdoOptions);
7272
} else {
73-
return new PDO($dsn, $MySql_username, $MySql_password, $pdoOptions);
73+
return new PDO($dsn, $MsSql_username, $MsSql_password, $pdoOptions);
7474
}
7575
}
7676

0 commit comments

Comments
 (0)