Loading...
 
Skip to main content

Development


Unable to install when using a socket for mysqli

There is a bug in the installer whereby if your mysql database requires a socket to be specified then you are unable to install.

This happens on a 1and1 server where the database connection is localhost:/tmp
/mysql5.sock

My temporary solution as i'm just testing tiki out was to add a line of code to the file adodb-mysqli.inc.php in /drivers

Find:
foreach($this->optionFlags as $arr) {
mysqli_options($this->_connectionID,$arr0,$arr1);
}

#if (!empty($this->port)) $argHostname .= ":".$this->port;
$ok = mysqli_real_connect($this->_connectionID,

Replace with:
foreach($this->optionFlags as $arr) {
mysqli_options($this->_connectionID,$arr0,$arr1);
}

#if (!empty($this->port)) $argHostname .= ":".$this->port;
$this->socket = "/tmp/mysql5.sock";
$ok = mysqli_real_connect($this->_connectionID,


This is a temporary fix until someone gets time to fix it for real.

An1j21