Error: database driver problem detected

Error: database driver problem detected

Nilesh Pathade -
回帖数: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
回复Nilesh Pathade

Re: Error: database driver problem detected

Leon Stringer -
Core developers的头像 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.

回复Leon Stringer

Re: Error: database driver problem detected

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.