How To Install phpMyAdmin on CentOS 7

In this tutorial we learn how to install phpMyAdmin on CentOS 7. phpMyAdmin is Handle the administration of MySQL over the World Wide Web

Introduction

In this tutorial we learn how to install phpMyAdmin on CentOS 7.

What is phpMyAdmin

phpMyAdmin is a tool written in PHP intended to handle the administration of MySQL over the World Wide Web. Most frequently used operations are supported by the user interface (managing databases, tables, fields, relations, indexes, users, permissions), while you still have the ability to directly execute any SQL statement. Features include an intuitive web interface, support for most MySQL features (browse and drop databases, tables, views, fields and indexes, create, copy, drop, rename and alter databases, tables, fields and indexes, maintenance server, databases and tables, with proposals on server configuration, execute, edit and bookmark any SQL-statement, even batch-queries, manage MySQL users and privileges, manage stored procedures and triggers), import data from CSV and SQL, export data to various formats XML, PDF, OpenDocument Text and Spreadsheet, Word, Excel, LATEX and others, administering multiple servers, creating PDF graphics of your database layout, creating complex queries using Query-by-example (QBE), searching globally in a database or a subset of it, transforming stored data into any format using a set of predefined functions, like displaying BLOB-data as image or download-link and much more…

We can use yum or dnf to install phpMyAdmin on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install phpMyAdmin.

Install phpMyAdmin on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install phpMyAdmin using yum by running the following command:

sudo yum -y install phpMyAdmin

Install phpMyAdmin on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install phpMyAdmin using dnf by running the following command:

sudo dnf -y install phpMyAdmin

How To Uninstall phpMyAdmin on CentOS 7

To uninstall only the phpMyAdmin package we can use the following command:

sudo dnf remove phpMyAdmin

References

Summary

In this tutorial we learn how to install phpMyAdmin on CentOS 7 using yum and dnf.