How To Install phpMyAdmin In Ubuntu

Websolutionstuff | Jul-24-2023 | Categories : Laravel PHP

In this article, we will explore the process of installing phpMyAdmin in Ubuntu. phpMyAdmin is a popular web-based administration tool for managing MySQL and MariaDB databases. It provides a user-friendly interface that allows you to perform various database operations such as creating, modifying, and deleting databases, tables, and executing SQL queries.

In the following sections, we will provide you with a step-by-step guide on how to install phpMyAdmin on your Ubuntu system. We will cover the necessary commands and configurations to ensure a successful installation.

We will see how to install phpmyadmin in ubuntu 22.04, how to install phpmyadmin in ubuntu 21.10, ubuntu 21.04, ubuntu 20.04, ubuntu 18.04 and ubuntu 16.04.

So, let's get started and learn how to install phpMyAdmin in Ubuntu.

Install MySQL on Ubuntu

Update Package Lists

Open a terminal window and run the following command to update the package lists.

sudo apt update

 

Install MySQL Server

Once the package lists are updated, you can proceed to install MySQL Server by running the following command:

sudo apt install mysql-server

 

Install Phpmyadmin

Then, you can proceed to install phpMyAdmin by running the following command

sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl

 

Create a User on MySQL

Now, we will create a user for MySQL using the following command.

mysql -u root -p
  
CREATE USER 'root'@'localhost' IDENTIFIED BY 'password';
     
GRANT ALL PRIVILEGES ON * . * TO 'root'@'localhost';
  
FLUSH PRIVILEGES;

Now you can go to your browser and open IP or localhost then you will find the below layout:

http://localhost/phpmyadmin

http://your_domain_or_IP/phpmyadmin

Output:

ubuntu-phpmyadmin

 

Resolved: The requested URL /phpmyadmin was not found on this server

After you restart Apache2 you may not be able to see the phpmyadmin login page.

Open apache.conf file:

sudo nano /etc/apache2/apache2.conf

Then add the following line to the end of the file.

Include /etc/phpmyadmin/apache.conf

Restart Apache:

sudo /etc/init.d/apache2 restart

 


You might also like:

Recommended Post
Featured Post
Laravel 9 Yajra Datatable Example
Laravel 9 Yajra Datatable Exam...

In this artical we will see laravel 9 yajra datatable example. As we all used datatable on our backend side project, Her...

Read More

Mar-10-2022

How To Send Email With Attachment In Laravel 9
How To Send Email With Attachm...

In this article, we will see how to send email with attachments in laravel 9. As we all know mail functionalities are co...

Read More

Mar-16-2022

How To Create Parallax Scrolling Effect Using jQuery
How To Create Parallax Scrolli...

In this article, we will see how to create a parallax scrolling effect using jquery. Parallax scrolling is a websit...

Read More

May-04-2022

How to Add Date Picker in React JS using react-datepicker
How to Add Date Picker in Reac...

A date picker is a crucial component in many web applications, enabling users to select dates conveniently. React, a pop...

Read More

Sep-11-2023