In this tutorial i’m going to set username and password in ubuntu. There are many reasons you may need to change phpMyAdmin password. Perhaps, as a part of your security checks.
Put a strong username and password for your phpMyAdmin installation is important for security purposes. phpMyAdmin is a web-based administration tool for MySQL and MariaDB databases. It allows you to perform various database operations, such as creating, editing, and deleting databases and tables, as well as managing users and permissions.
If your phpMyAdmin installation is not properly secured, it could be exploited by attackers to gain access to your database server and sensitive data. This could lead to data breaches, unauthorized access, and other security risks.
Example :-
sudo /opt/lampp/xampp security
After run above command put your username and password for set phpmyadmin access.
![](https://www.devopsfreelancer.com/blog/wp-content/uploads/2023/11/image-26.png)
After run this restart the server.
sudo /opt/lampp/lampp restart
![](https://www.devopsfreelancer.com/blog/wp-content/uploads/2023/11/image-27-1024x232.png)
Next open phpmyadmin then he asked to you username and password as well.
![](https://www.devopsfreelancer.com/blog/wp-content/uploads/2023/11/image-28-1024x422.png)