Add compress flag when connecting with mysql
This commit is contained in:
parent
406dff7629
commit
ab819c5c6e
@ -23,7 +23,10 @@ class WDB {
|
||||
//if (defined(MYSQL_PORT)) $this->host = $this->host.':'.MYSQL_PORT;
|
||||
$this->host = $this->host.':53336';
|
||||
|
||||
$this->con_id = mysql_connect($this->host, $this->user, $this->password);
|
||||
//Server is far away try to compress data
|
||||
$flags = MYSQL_CLIENT_COMPRESS;
|
||||
|
||||
$this->con_id = mysql_connect($this->host, $this->user, $this->password, false, $flags);
|
||||
if (!($this->con_id === false)) {
|
||||
if (mysql_select_db($this->database, $this->con_id) === false) {
|
||||
echo date('Y/m/d - H:i:s') ." - ERREUR ".mysql_errno()." : Connection à la base de données impossible !".EOL;
|
||||
|
Loading…
Reference in New Issue
Block a user