Following error (Database connection failed) while installing Moodle in Windows 10. How to fix?

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::__construct(): (HY000/1045): Access denied for user 'moodle-st'@'localhost' (using password: YES) in C:\Moodle\server\moodle\lib\dml\mysqli_native_moodle_database.php on line 79

Moodle-Learning-Management-System Installing-Moodle-on-Local-Server 09-10 min 50-60 sec 05-05-20, 6:39 a.m. jobycg2005

Answers:

This is because XAMPP was not installed properly on your system. Please reinstall XAMPP and try again.


Please follow the steps given in the below link:(see page 2 for windows installation)

https://spoken-tutorial.org/media/videos/97/Moodle-Learning-Management-System-Installation-Sheet-English.pdf


05-05-20, 2:15 p.m. NirmalaVenkat


Click here to reply/comment online