Cookies!
We use cookies to make your experience better!
phpMyAdmin is a free and open-source tool written in PHP intended to handle the administration of MySQL or MariaDB with the use of a web browser. In this guide, we'll show you how to install phpMyAdmin and create a MySQL user on a CentOS 7 system running MySQL 8.0.
Before starting, you should have a CentOS 7 server with MySQL 8.0 installed and a non-root user with sudo privileges.
The EPEL repository contains the phpMyAdmin package. Install it using the following command:
$ sudo yum install epel-release -y
Once the EPEL repository is enabled, install phpMyAdmin:
$ sudo yum install phpmyadmin -y
Access the MySQL shell with the following command:
$ mysql -u root -p
Create a new user 'newuser' with password 'password' by running:
mysql> CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
Give 'newuser' all privileges for the 'database' database:
mysql> GRANT ALL PRIVILEGES ON database.* TO 'newuser'@'localhost';
mysql> FLUSH PRIVILEGES;
You've successfully installed phpMyAdmin and created a new MySQL user on your CentOS 7 system running MySQL 8.0. Now you can manage your MySQL databases through a user-friendly web interface.
64 - 111
Our expert guides help you when you need them anywhere, anytime. [email protected]
Copyright © 2025 Pofii. All Rights Reserved., Made with by Pofii | PofiiUI X.
We use cookies to make your experience better!