Moodle (dev, 3.8.1, 3.74) packages for windows issue

Moodle (dev, 3.8.1, 3.74) packages for windows issue

Germán Valero發表於
Number of replies: 2
Documentation writers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片 Translators的相片

When installing Moodle packages for Windows, versions  for 3.9dev, 3.8.1+, 3.7.4+ in a Windows 10pro PC with 32GB, I got the following error:

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 'root'@'localhost' (using password: YES) in C:\Temp\m390dev\server\moodle\lib\dml\mysqli_native_moodle_database.php on line 79

But Moodle install package for branch 3.6.8 and lowers do install as usual.

I use several branches of local moodle servers to check language translations I have made.

Moodle install error

評比平均分數: -
In reply to Germán Valero

Re: Moodle (dev, 3.8.1, 3.74) packages for windows issue

Emma Richardson發表於
Documentation writers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片
Quite clearly you have an issue with the user not being able to access the database. Either your password is wrong or the root user does not have the correct access to mysql. It would be better to create a user specifically for the moodle database and use that user to access it from here.
In reply to Emma Richardson

Re: Moodle (dev, 3.8.1, 3.74) packages for windows issue

Germán Valero發表於
Documentation writers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片 Translators的相片
Thank Emma.

The real problem is that I was installing the Moodle complete packages for Windows.

The database user name (root) is hard-coded in the package.
The database password is OK, as I have used it a zillion times for all my local Moodle servers since branch 2.0.

The odd thing is that this problem happens with Moodle packages for Windows versions 3.9dev, 3.8.1+, 3.7.4+, but the packages for Moodle versions 3.6.8 and lower do install perfectly, as usual.


I have reproduced this problem in a Windows10pro PC (32GB) at home and a Windows7pro PC (16GB) at my University. I do not have more Windows PCs at my disposal.

Interestingly, Moodle 3.9dev complete package for Mac seems to be working fine.

This has been happening since aproximately 1 month. I suspect that someone changed the composition of the 3 most recent branches of the Moodle complete packages for Windows (most likely in order to update the PHP & Database versions included) and somehow this problem arose.

Can you please attempt to install one of the said Moodle complete packages for Windows. and check if you can also reproduce the problem. Quite a few Moodlers do use these complete packages for Windows in local servers.

Thanks in advance.