database connection fails

database connection fails

by Tech Gyan -
Number of replies: 0

<?php  // Moodle configuration file

unset($CFG);

global $CFG;

$CFG = new stdClass();

$CFG->dbtype    = 'mariadb';

$CFG->dblibrary = 'native';

    $CFG->dbhost    = 'localhost';

$CFG->dbname    = 'u562225088_Gslfdb';

$CFG->dbuser    = 'u562225088_Gslfusername';

$CFG->dbpass    = 'Test@123DB';

$CFG->prefix    = 'mdl_';

$CFG->dboptions = array (

  'dbpersist' => 0,

  'dbport' => '',

  'dbsocket' => '',

 //'dbcollation' => 'utf8_unicode_ci',

  

  'dbcollation' => 'utf8mb4',

);


$CFG->wwwroot   = 'https://gslfoundation.org/moodle';

$CFG->dataroot  = '/home/u562225088/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!

Still Getting this error msgtest


Average of ratings: -