Hello please help. Am trying to install moodle and I have reached a part where am suppose to configure the database but am running into the error below:
"It is usually not possible to recover from errors triggered during installation, you may need to create a new database or use a different database prefix if you want to retry the installation."
ENVIRONMENT: CENTOS 7.2 in VMware on windows 10 Machine.
THINGS I TRIED:
1. I Deleted the database and recreate it.
2. I deleted the config.php file in moodle directory and run install.php again
3.change the user of config.php to mysql.
4. I changed the permission on config.php to 0777
5. checked my version of MYSQL which is 5.7.27
PLEASE HELP. I DONT KNOW WHERE AM MISSING IT.
Below is my config.php:
<?php // Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = 'mysqli';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle_database';
$CFG->dbuser = 'root';
$CFG->dbpass = '****';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => 3306,
'dbsocket' => '',
'dbcollation' => 'utf8mb4_general_ci',
);
$CFG->wwwroot = 'http://localhost/moodle';
$CFG->dataroot = '/var/www/moodledata';
$CFG->admin = 'admin';
$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!