saving . . . saved Error while installing moodle has been deleted. Error while installing moodle has been hidden .
Error while installing moodle
Title
Question

<font color="#000000">I am getting following error while installing moodle. kindly guide me to resolve it.</font>


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<span style="color: rgb(185, 74, 72); font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: rgb(242, 222, 222);">: mysqli::__construct(): (HY000/1045): Access denied for user 'moodle-st'@'localhost' (using password: YES) in </span>C:\Moodle\server\moodle\lib\dml\mysqli_native_moodle_database.php<span style="color: rgb(185, 74, 72); font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: rgb(242, 222, 222);"> on line </span>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

Login to add comment


Log-in to answer to this question.