Would you like to learn how to recover the Grafana admin password? In this tutorial, we are going to show you how to use the Grafana 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
• Grafana 6.0.2
What is Grafana?
Grafana is an open-source platform for data monitoring, analysis, and visualization that comes with a web server that allows it to be accessed from anywhere.
On the Web interface, users are able to create Grafana dashboards with panels to represent metrics over time.
Grafana Tutorial:
On this page, we offer quick access to a list of Grafana tutorials.
Tutorial – Grafana Password Recovery
In our example, we are using MySQL as the database service for Grafana.
First, we need to access the MySQL server as root user.
Use the following command to install the required packages.
# apt-get update
# apt-get install mysql-client
Use the following command to login the MySQL server as root.
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 17226
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
mysql>
The system will ask you to enter the root user MySQL password.
After entering the password, use the following MySQL commands to reset the Grafana Admin user password.
In our example, we changed the admin user password to admin.
Grafana Dashboard Login
Open your browser and enter the IP address of your server plus :3000.
In our example, the following URL was entered in the Browser:
• http://34.216.84.149:3000
The Grafana web interface should be presented.
On the prompt screen, enter the Grafana Default Password login information.
• Username: admin
• Password: admin
The system will ask you to change the Grafana default password.
After a successful login, the Grafana dashboard will be displayed.
Congratulations! You successfully recovered the password of the Grafana Admin user.