• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How To Install PhpMyAdmin On Linux Mint 20.2

  • 00:35 lsb_release -a
  • 00:51 apt install phpmyadmin -y
  • 01:40 mysql -u root -p
  • 01:58 show databases;
  • 02:08 use phpmyadmin;
  • 02:51 create user user@localhost identified by 'linuxhelp';
  • 03:21 grant all on phpmyadmin.* to user@localhost;
  • 03:39 flush privileges;
  • 03:47 exit
  • 03:59 systemctl restart apache2
{{postValue.id}}

To Install PhpMyAdmin On Linux Mint 20.2

Introduction :

PhpMyAdmin is a free and open source administration tool for MySQL and MariaDB. As a portable web application written primarily in PHP, it has become one of the most popular MySQL administration tools, especially for web hosting services.

Step 1 : Check the OS version by using the below command

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Linuxmint
Description:	Linux Mint 20.2
Release:	20.2
Codename:	uma

Step 2 : Install the phpmyadmin by using the below command

root@linuxhelp:~# apt install phpmyadmin -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  php-recode php-gd2 php-pragmarx-google2fa php-bacon-qr-code php-samyoul-u2f-php-server
The following NEW packages will be installed:
  phpmyadmin
0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded.
Need to get 4,426 kB of archives.
After this operation, 27.2 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 phpmyadmin all 4:4.9.5+dfsg1-2 [4,426 kB]
Fetched 4,426 kB in 1s (4,983 kB/s)  
Preconfiguring packages ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
Selecting previously unselected package phpmyadmin.
(Reading database ... 283109 files and directories currently installed.)
Preparing to unpack .../phpmyadmin_4%3a4.9.5+dfsg1-2_all.deb ...
Unpacking phpmyadmin (4:4.9.5+dfsg1-2) ...
Setting up phpmyadmin (4:4.9.5+dfsg1-2) ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf
checking privileges on database phpmyadmin for phpmyadmin@localhost: user creation needed.
granting access to database phpmyadmin for phpmyadmin@localhost: success.
verifying access for phpmyadmin@localhost: success.
dbconfig-common: dumping mysql database phpmyadmin to /var/tmp/phpmyadmin.phpmyadmin.2021-12-26-06.02.mysql.tIRD5h.
database does not exist.
dbconfig-common: dropping old mysql database phpmyadmin.
dropping database phpmyadmin: database does not exist.
creating database phpmyadmin: success.
verifying database phpmyadmin exists: success.
populating database via sql...  done.
dbconfig-common: flushing administrative password
apache2_invoke: Enable configuration phpmyadmin
Processing triggers for doc-base (0.10.9) ...
Processing 1 added doc-base file...
Processing triggers for hicolor-icon-theme (0.17-2) ...

snap1

Snap 2

Snap 3

Snap 4

Step 3 : Login into mysql database root by using the below command

root@linuxhelp:~# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 94
Server version: 10.3.32-MariaDB-0ubuntu0.20.04.1 Ubuntu 20.04

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

Step 4 : List the databases by using the below command

MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| phpmyadmin         |
+--------------------+
4 rows in set (0.001 sec)

Step 5 : change the database to phpmyadmin by using the below command

MariaDB [(none)]> use phpmyadmin;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed

Step 6 : Create User and Password for phpmyadmin by using the below command

MariaDB [phpmyadmin]> create user user@localhost identified by 'linuxhelp';
Query OK, 0 rows affected (0.001 sec)

Step 7 : Grant the permissions by using the below command

MariaDB [phpmyadmin]> grant all on phpmyadmin.* to user@localhost;
Query OK, 0 rows affected (0.001 sec)

Step 8 : Give privileges by using the below command

MariaDB [phpmyadmin]> flush privileges;
Query OK, 0 rows affected (0.002 sec)

Step 9 : Exiting the mysql database

MariaDB [phpmyadmin]> exit
Bye

Step 10 : Restart the apache2 web server by using the below command

root@linuxhelp:~# systemctl restart apache2

Snap 5

Snap 6

With this, the process of installing PHPMyAdmin on Linux Mint 20.2 has come to an end….!!

Tags:
connor
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is the command line to install the PHPMyAdmin?

A

The command line to install the PHPMyAdmin is # apt install phpmyadmin -y command.

Q

How will you log in to the MariaDB?

A

To login into the MariaDB use the command mysql -u root -p

Q

How to create the user and the password for PHPMyAdmin in MySQL?

A

To create a user and the password for PHPMyAdmin in MySQL use the command user@localhost identified by 'linuxhelp';

Q

What is the command to grant all the permissions in PHPMyAdmin?

A

The command to grant permission in PHPMyAdmin use
grant all on phpmyadmin.* to user@localhost;

Q

What is the command used for giving the privileges?

A

flush privileges are the command used for giving privileges.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Sebastian ?
How to change non required to required field in SuiteCRM Custom/Default Modules

How to change not required to the required field in SuiteCRM Custom/Default Modules?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.