When running the install.php I get:
"Error: database driver problem detected
The site administrator should verify server configuration
Unknown driver native/mysql"
what can cause this message?
One answer: do *not* create a config.php before running the install script!
The config.php is generated by install.php. Once I removed the one I created the page loaded - doh!
hey chris thorne this worked for me! thanks for the tip!
the installation instructions suggest to rename and edit the config.php and that's what I did.
But your suggestion helped a lot!
If your installing Moodle 2.0 then try mysqli.
So is the mysql driver just gone in 2.0?
I have a MySQL database set up, but I don't see a MySQL driver listed in the dropdown on the install script.
Searching the forums on this issue is really confusing. We really ought to have different forums for the versions...
Last time I saw this message it was because the wrong database type was included in the config.php file. This is why the previous advice of letting Moodle create the config.php file itselfe would work
However, see below and use of the type:
//=========================================================================
// 1. DATABASE SETUP
//=========================================================================
// First, you need to configure the database where all Moodle data //
// will be stored. This database must already have been created //
// and a username/password created to access it. //
$CFG->dbtype = 'mysqli'; // 'pgsql', 'mysqli', 'mssql' or 'oci'
$CFG->dblibrary = 'native'; // 'native' only at the moment
Letting Moodle create the config.php precludes choosing MySQL, because MySQL does not seem to be supported. Manually entering mysql as database type leads to the error above - but my question now is ...
Does Moodle no longer support MySQL as a database type? I know MySQL lite / improved etc. is similar - but surprised that plain vanilla MySQL does not seem available.
Anyone got additional info on this please? TIA
Phrased another way - it seems to me that Moodle 2.0 no longer supports MySQL.
I'm sure I *must* be wrong, but this line suggests that 'pgsql', 'mysqli', 'mssql' or 'oci' are the only database drivers supported ...
$CFG->dbtype = ''; // 'pgsql', 'mysqli', 'mssql' or 'oci'
(manually editing config.cfg does not connect either)
MySQLi is an improved version of the older PHP MySQL driver (interface with MySQL databases). For further explanations please look here http://moodle.org/mod/forum/discuss.php?d=168041&parent=737325
Thank you Peter.
Now I understand that MySQL is indeed supported, but Moodle will only work with a good deal of work involving multiple php.ini files in various folders and sub-folders.
Much more complex, but at least now I know it is possible ...
Thanks!
The MySQLi extension is very standard. Where are you getting your PHP from that it does not this library available and enabled by default?
Thank you Peter, Tim - Now I understand.
To explain and apologise ...
An unrelated database connection was (unknown to me) my real problem. I was so sure of all my setup - and the only explanation that *I* could see was my perceived lack of a 'regular' MySQL database driver. Mea maxima culpa!
Seaghan --
Can you unexplain this unrelated connection? I am having the same problem, and am amazed that this is happening and no one has an answer other than making 50 php.ini files, which didn't work for me anyway.
Thanks,
Peter