For Upgrade:
Support non-standard ports in MySQLi
Dear friends.
It was detected a problem whereby if MySQLi server uses
non-standard port for connecting, for example, if your hoster as the
address to MySQL announced address website.ru: 3307, the script can not
connect these parameters to the database. This problem exists only if
you use the connection with non-standard port, and only if you use
MySQLi extension to connect to the database
Error in release: all versions supporting MySQLi
The manual correction:
Open : engine/classes/mysqli.class.php
Find:
if(!$this->db_id = @mysqli_connect($db_location, $db_user, $db_pass, $db_name)) {
Replace:
$db_location = explode(":", $db_location);
if ($db_location[1]) {
$this->db_id = @mysqli_connect($db_location[0], $db_user, $db_pass, $db_name, $db_location[1]);
} else {
$this->db_id = @mysqli_connect($db_location[0], $db_user, $db_pass, $db_name);
}
if(!$this->db_id) {