Error: database driver problem detected

Error: database driver problem detected

by Nilesh Pathade -
Number of replies: 4

Hi All,

I am using Moodle 4.5 upgraded and Database is mysql

I am trying to hit schedule task by clicking run now link. its showing me error as following

!!! <p>Error: database driver problem detected</p>
<p>The site administrator should verify server configuration</p>
<p>PHP has not been properly configured with the MySQLi extension for it to communicate with MySQL.
Please check your php.ini file or recompile PHP.</p> !!!

I have checked my php.ini file its already enabled mysqli extension



let me know if there is something I am missing. I am unable to run scheduled tasks
Average of ratings: -
In reply to Nilesh Pathade

Re: Error: database driver problem detected

by Ken Task -
Picture of Particularly helpful Moodlers

Have you set the path to php-cli in Paths of Moodle config?

'SoS', Ken

In reply to Ken Task

Re: Error: database driver problem detected

by Nilesh Pathade -
are you saying in config.php file or moodle administration side
In reply to Nilesh Pathade

Re: Error: database driver problem detected

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

I have checked my php.ini file its already enabled mysqli extension

Possibly your command line PHP version does not use the same php.ini. You should have a path to this in Path to PHP CLI. Try running this path at the command line with -i to see which .ini files it's reading and which extensions are loaded. For example if Path to PHP CLI is "/usr/bin/php" run /usr/bin/php -i.

In reply to Leon Stringer

Re: Error: database driver problem detected

by Nilesh Pathade -
exactly I was thinking Thank you Leon

I have checked it but its same as it is. and mysqli is enable in cli php.ini file too.
But still showing same error. Is there any other which I am missing.