Don't use pconnect (sql.inc.php can e.g. lock tables)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@352 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
58fa416c75
commit
5dc6d5c671
|
@ -26,7 +26,7 @@ if (extension_loaded("mysqli")) {
|
||||||
var $_link, $_result, $server_info, $affected_rows, $error;
|
var $_link, $_result, $server_info, $affected_rows, $error;
|
||||||
|
|
||||||
function connect($server, $username, $password) {
|
function connect($server, $username, $password) {
|
||||||
$this->_link = @mysql_pconnect(
|
$this->_link = @mysql_connect(
|
||||||
(strlen($server) ? $server : ini_get("mysql.default_host")),
|
(strlen($server) ? $server : ini_get("mysql.default_host")),
|
||||||
(strlen("$server$username") ? $username : ini_get("mysql.default_user")),
|
(strlen("$server$username") ? $username : ini_get("mysql.default_user")),
|
||||||
(strlen("$server$username$password") ? $password : ini_get("mysql.default_password")),
|
(strlen("$server$username$password") ? $password : ini_get("mysql.default_password")),
|
||||||
|
|
Loading…
Reference in a new issue