On the code you linked, MysqlManager loads if
$sugar_config['mysqli_disabled']
is empty and the mysqli_connect function exists.
In our case, mysqli_connect exists and mysql_connect doesnât as it was removed in PHP 7.0.0
Looking at config.php i have the following
'dbconfig' =>
array (
'db_host_name' => 'localhost',
'db_host_instance' => 'SQLEXPRESS',
'db_user_name' => '',
'db_password' => '',
'db_name' => '',
'db_type' => 'mysql',
'db_port' => '',
'db_manager' => 'MysqlManager',
),
'dbconfigoption' =>
array (
'persistent' => true,
'autofree' => false,
'debug' => 0,
'ssl' => false,
),
but even if i change them to mysqli, i get the same issue
The code falls to https://github.com/salesagility/SuiteCRM/blob/ef1b41965c056937894dd3018d3b149c9c25a9a9/include/database/DBManagerFactory.php#L103-L105
if i echo $my_db_manager on line 106, i get MysqliManager which is correct, but if i rename MysqlManager.php Suite still crashes, meaning itâs still required.
Removing âdb_managerâ => âMysqlManagerâ, still gives me MysqliManager but removing MysqlManager.php has the same effect