by Márcio Bacci.
Hello
I'm trying to update Moodle from version 4.1.1 to 4.3.3 on Debian 11. I updated to PHP 8.3 and it still didn't work. Then I verified that I was using MariaDB 10.5 and I had to update to 10.6, but this update is not available even in the Debia 11 backports. So I ran the following to update MariaDB:
curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | bash
apt-get install mariadb-server
After that, the Moodle application can no longer connect to the DB.
In the shell I can connect and even use the Moodle BD with root, however the following command does not work:
MariaDB [(none)]> grant all privileges on moodle.* to 'root'@'localhost' identified by 'password';
ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'moodle'
Here is also my config.php:
<?php // Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->debug = 6143;
$CFG->debugdisplay = 1;
@ini_set('display_errors','1');
$CFG->dbtype = 'mariadb';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'ze';
$CFG->dbpass = 'ze@123';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => '3306',
'dbsocket' => '/var/run/mysqld/mysqld.sock',
'dbcollation' => 'utf8mb4_general_ci',
'dbsocket' => '',
);
$CFG->wwwroot = 'https://ead.empresa.com/moodle';
$CFG->dataroot = '/var/www/moodledata';
$CFG->admin = 'admin';
//$CFG->diroot = '/var/www/html/moodle';
$CFG->directorypermissions = 0777;
require_once(__DIR__ . '/lib/setup.php');
// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!
can anybody help me?