Problem trying to read data from your Moodle database.

Problem trying to read data from your Moodle database.

by Amit Batajoo -
Number of replies: 4
Hello, 

Please help me with solution.
I just got stuck in installation step to complete the admin registration. In
http://XXXXXXXXXXX/user/editadvanced.php

Error message

Error reading from database

More information about this error (https://docs.moodle.org/39/en/error/moodle/dmlreadexception)

Environment:
ubuntu 20.04.4 for Linux on x86_64 ((Ubuntu))
PHP 7.4
Mysql 8.0.21-0
apache2
Moodle 39

Its really hard to find what is the problem.
Please help me.

Thank you in advace.

Attachment dbcannotread-error.PNG
Average of ratings: -
In reply to Amit Batajoo

Re: Problem trying to read data from your Moodle database.

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

I assume you followed https://docs.moodle.org/39/en/Step-by-step_Installation_Guide_for_Ubuntu. You say, you passed 8.8 and when you come to registering the site at Moodle stats you get this error? Did you try skipping the registration? There is a tiny button for Continue.

In any case try to get a more detailed debug trace by activating https://docs.moodle.org/39/en/Debugging to maximum level, called DEVELOPER.
In reply to Visvanath Ratnaweera

Re: Problem trying to read data from your Moodle database.

by Amit Batajoo -
Thank you very much for your kind reply.

Yes, I followed the same document and exactly stuck at 8.8.

There is no skipping option for registration.

IS there any right steps to solve it?
Please need your kind support and suggestion.

Thank you

<image just one step before the error page. >
I cannot find the button to skip the registration.
Attachment dbcannotread-error2.PNG
In reply to Amit Batajoo

Re: Problem trying to read data from your Moodle database.

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
In that screen-shot you are at 8.6 https://docs.moodle.org/39/en/Step-by-step_Installation_Guide_for_Ubuntu#Create_a_Site_Administrator_Account.

So when you click on Update profile, it accepts the settings for the administrator and move on to 8.7 Registration. Do you see the long web form with registration details? Pl. attache a screen-shot.

Once your click on Register button on that page, Moodle throws the database error? The way forward is the debugging I explained in my previous post.
In reply to Visvanath Ratnaweera

Re: Problem trying to read data from your Moodle database.

by Amit Batajoo -
Thank you very for your kind suggestions.

The issue is solved. For solution, I just delete the database and config.php and start database create and installation from starts.
Finally it worked for me.

Thank you.