Today i stumbled upon the same missing feature.
You can fix it the following way:
1. Open install/checkDBSettings.php
2. Add the following function before or after the checkDBSettings function:
PHP Code:
function &getMysqliHandle() {
if(strpos($_SESSION['setup_db_host_name'], ':')) {
$hostData = explode(':', $_SESSION['setup_db_host_name']);
$mysql_hostname = &$hostData[0];
$mysql_port = &$hostData[1];
} else {
$mysql_hostname = &$_SESSION['setup_db_host_name'];
$mysql_port = 3306; // use the default port if none is specified
}
$link = @mysqli_connect(
$mysql_hostname,
$_SESSION['setup_db_sugarsales_user'],
$_SESSION['setup_db_sugarsales_password'],
$_SESSION['setup_db_database_name'],
$mysql_port
);
return $link;
}
3. Search for occurencies of the following function call:
PHP Code:
$link = @mysqli_connect( $_SESSION['setup_db_host_name'],
$_SESSION['setup_db_sugarsales_user'],
$_SESSION['setup_db_sugarsales_password'] );
4. Replace it with the following function call:
PHP Code:
$link = getMysqliHandle();
5. Have fun
Regards,
Thorsten Boock
Bookmarks