Would you like to learn how to recover the Moodle admin password? In this tutorial, we are going to show you how to use the Moodle password recovery procedure to change the password of the admin user using the command-line of a computer running Ubuntu Linux.
• Ubuntu 18.04
• Ubuntu 19.04
• Moodle 3.8.1
Moodle Related Tutorial:
On this page, we offer quick access to a list of tutorials related to Moodle.
Tutorial Moodle – Password Recovery
In our example, we are using MySQL as the database service for Moodle.
First, we need to access the MySQL server as root user.
Use the following command to install the required packages.
Use the following command to login the MySQL server as root.
The system will ask you to enter the root user MySQL password.
Use the following MySQL commands to reset the Moodle Admin user password.
In our example, the website administrative user account is named admin.
In our example, we changed the admin user password to admin.
Keep in mind that you need to change the Moodle database name and the Admin account name to reflect your environment.
Moodle Dashboard Login
Open your browser and enter the IP address of your moodle server /wp-admin
In our example, the following URL was entered in the Browser:
• http://192.168.0.10/moodle
The Moodle web interface should be presented, click on the Login option.
On the prompt screen, enter the new moodle login information.
• Username: admin
• Password: admin
After a successful login, the Moodle dashboard will be displayed.
Congratulations! You successfully recovered the password of the Moodle Admin user.