0

Error: Database connection failed

It is possible that the database is overloaded or otherwise not running properly.

The site administrator should also check that the database details have been correctly specified in config.php

Warning: mysqli::mysqli(): (28000/1045): Access denied for user 'moodledude'@'localhost' (using password: YES) in /var/www/html/moodle/lib/dml/mysqli_native_moodle_database.php on line 79

How can i solve this issue? Could anyone help me out in this ?

ASR
  • 1,801
  • 5
  • 25
  • 33
Nidhin
  • 303
  • 1
  • 4
  • 4

1 Answers1

0

Can u please check the config.php file inside moodle folder

global $CFG;
$CFG = new stdClass();

$CFG->dbtype    = 'mysqli';
$CFG->dblibrary = 'native';
$CFG->dbhost    = 'localhost';
$CFG->dbname    = 'moodle';
$CFG->dbuser    = 'root';
$CFG->dbpass    = '';
$CFG->prefix    = 'mdl_';
$CFG->dboptions = array (
  'dbpersist' => 0,
  'dbport' => '',
  'dbsocket' => '',
);

$CFG->wwwroot   = '<URL>';

OR please check the table mdl_user

Please check the config file for db connection failure

Varun Sreedharan
  • 517
  • 8
  • 28