1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 22:56:46 +02:00

MySQLi: Use default credentials

Accidentally removed by c96894e.
This commit is contained in:
Jakub Vrana
2025-03-28 22:25:46 +01:00
parent 03d0daff5c
commit 4e1e638f98

View File

@@ -23,9 +23,9 @@ if (!defined('Adminer\DRIVER')) {
$this->ssl_set($ssl['key'], $ssl['cert'], $ssl['ca'], '', ''); $this->ssl_set($ssl['key'], $ssl['cert'], $ssl['ca'], '', '');
} }
$return = @$this->real_connect( $return = @$this->real_connect(
($server != "" ? $host : null), ($server != "" ? $host : ini_get("mysqli.default_host")),
($server . $username != "" ? $username : null), ($server . $username != "" ? $username : ini_get("mysqli.default_user")),
($server . $username . $password != "" ? $password : null), ($server . $username . $password != "" ? $password : ini_get("mysqli.default_pw")),
null, null,
(is_numeric($port) ? $port : ini_get("mysqli.default_port")), (is_numeric($port) ? $port : ini_get("mysqli.default_port")),
(is_numeric($port) ? intval($port) : null), (is_numeric($port) ? intval($port) : null),