Quote:
Originally Posted by snakes1100
Flipped a few switches, to give some more insite:
PHP Warning: mysqli_connect(): (HY000/2002): Connection refused in ..../arcade/functions/dbclass_mysqli.php on line 44
PHP Warning: mysqli_select_db() expects parameter 1 to be mysqli, boolean given in ..../arcade/functions/dbclass_mysqli.php on line 48
ERROR: Cannot find database xxxxxxxx
PHP Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in ..../arcade/functions/dbclass_mysqli.php on line 185
PHP Warning: mysqli_error() expects exactly 1 parameter, 0 given in ..../arcade/functions/dbclass_mysqli.php on line 504
|
Problem solved
Was a weird problem, the database-connect was working fine with "localhost" while "localhost:3306" responded "connection refused". No idea why. Fixed by removing the port (setting it to empty).
I will include a setting for this in upcoming v2.7.6+ so that anybody having connection problems can easily switch the behaviour of the database-driver...
@snakes1100:
Enjoy ibProArcade

:up:
@hirlas:
Please also try this:
open /arcade.php
search for
Code:
require $sql_driver;
$DB = new db_driver;
ABOVE that, add:
Code:
// fix for mysqli-connection-problems (by MrZeropage)
$config['MasterServer']['port'] = "";
$port = "";