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
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)