Moodle 1.9.5 installer doesn't configure database correctly ?

Is it only me, or has latest virtualmin 3.71 Pro an issue with the Moodle 1.9.5 installer ?`

Tried installing Moodle into 3 different servers (Ubuntu 8.04LTS and Debian Lenny) into the default moodle sub-folder, and on all 3 servers when clicking the link to finish installation I get in red:

Error: Database connection failed.

It is possible that the database is overloaded or otherwise not running properly.

The site administrator should also check that the database details have been correctly specified in config.php

Status: 
Active

Comments

In server error logs I see:

[warn] mod_fcgid: stderr: ADODB Error:

That's all... no error text...

That's odd, Moodle works fine on my test systems.

And that error from Moodle gives no indication as to what is going wrong :-(

Do the Moodle forums perhaps have any way to find out the cause?

Really odd.

By looking at code, I saw there is a mysqli option as well.

I went to config.php of moodle, and changed:

$CFG->dbtype = 'mysql';

to:

$CFG->dbtype = 'mysqli';

then it started working.

So either mysql is broken on all our servers (which is unlikely, since joomla uses it fine), or mysql is broken in moodle or php ADODB....which is unlikely too.

So still no idea why it doesn't work with default mysql... :-(

That is odd, as on my system it works with 'mysql' but not 'mysqli' !