Hi,
Try this:
oc-includes/osclass/classes/database/DBConnectionClass.php
Replace this block:
function _connectToDb($host, $user, $password, &$connId)
{
if( OSC_DEBUG ) {
$connId = new mysqli($host, $user, $password);
} else {
$connId = @new mysqli($host, $user, $password);
}
with:
function _connectToDb($host, $user, $password, &$connId)
{
if( OSC_DEBUG ) {
$connId = new mysqli($host, $user, $password, DB_NAME, '12345');
} else {
$connId = @new mysqli($host, $user, $password, DB_NAME, '12345');
}
Of course change 12345 to your real MySQL port.
Regards