by Shamiso Jaravaza.
I'm trying to run the CLI Backup command on Windows 10 in command prompt. But I get the following error:
<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'm running Moodle on localhost using a Bitnami Stack (MariaDB 10.4.20, Moodle 3.11.2, PHP 7.4.21, Apache 2.4.48)
I noticed my supervisor does this, so to get around using cmd I run the following as a bat file from within the cli folder:
@echo on
c:\bitnami\moodle-3.11.2-0\php\php.exe -f c:\bitnami\moodle-3.11.2-0\apps\moodle\htdocs\admin\cli\backup.php -courseid=4
When I use this method for cron.php and other backup cli commands it works, and doing a backup within Moodle also works. I can't figure out what I'm doing wrong. Could somebody help me please?