Error while installing moodle

I am getting following error while installing moodle. kindly guide me to resolve it.


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 Getting-Ready-for-Moodle-Installation 10-11 min 40-50 sec 31-03-20, 1:07 a.m. Pushpinder

Answers:

Check this out: https://moodle.org/mod/forum/discuss.php?d=163173#p715118
You will find your config.php at C:\Moodle\server\moodle
Check for the settings -
$CFG->dbuser    = 'moodle-st';
$CFG->dbpass    = 'yourpassword';

and also: https://docs.moodle.org/38/en/Installation_quick_guide#Create_a_database
Did you grant the permissions to the user 'moodle-st'@'localhost'?


31-03-20, 1:55 a.m. kashmira.n
have same problem can't solve it please help
01-05-20, 3:38 p.m. rishabhmelwanki@gmail.com
Check this post: https://forums.spoken-tutorial.org/question/2336/getting-database-connection-failed/

Let me know if there are any further queries or if the issue still persists.
01-05-20, 4:10 p.m. kashmira.n
http://localhost/moodle
It says object not found
https://drive.google.com/open?id=18_2oJHC_1MDgdDNM7dUJ1Vd35tipiPq5
https://drive.google.com/file/d/18_2oJHC_1MDgdDNM7dUJ1Vd35tipiPq5/view?usp=sharing
01-05-20, 8:43 p.m. rishabhmelwanki@gmail.com
Can't open the images. Please enable sharing or accept the request for access.
01-05-20, 11:08 p.m. kashmira.n
Here are a few posts I found discussing the similar issue:
- https://moodle.org/mod/forum/discuss.php?d=361828
- https://moodle.org/mod/forum/discuss.php?d=114412
- https://moodle.org/mod/forum/discuss.php?d=370470
- https://moodle.org/mod/forum/discuss.php?d=372177

01-05-20, 11:17 p.m. kashmira.n


Click here to reply/comment online