DEV Community

Alexander Omorokunwa
Alexander Omorokunwa

Posted on • Originally published at fossnaija.com on

3

How to install phpmyadmin on Linux (Ubuntu)

phpmyadmin_fossnaija

The MySQL database server can be administered using the command line, by running commands in the terminal. But it is more convenient and less tedious to use a graphical user interface (phpmyadmin) – most especially for those who are not comfortable with entering commands on a terminal.

phpMyAdmin is a free and open source GUI software tool written in PHP, intended to handle the administration of MySQL over the Web. phpMyAdmin supports a wide range of operations on MySQL and MariaDB.

Frequently used operations (managing databases, tables, columns, relations, indexes, users, permissions, etc) can be performed via the user interface, while you still have the ability to directly execute any SQL statement. And also perform exporting and importation of data in popular file formats (CSV, SQL, XML, PDF, Word, Excel, LaTeX and many others). phpMyAdmin is cross-platform and one of the most popular MySQL administration tool.

In this post, we’d be installing it on a Linux operating system. But before we begin ensure that you have Apache, MySQL and PHP install on your system. If not do it here.

Install phpMyAdmin.

Using the Ubuntu package manager apt (you can use other package managers for the respective Linux distributions), open th the terminal.

sudo apt-get install phpmyadmin

Then installation begins. When prompted, select “Apache2” from the “Configuring phpMyAdmin” dialogue box. When asked for MySQL username and password enter “root” for username and YOUR_MYSQL_PASSWORD for password.

After installation is complete, configure phpMyAdmin to be recognised by the local web server.

Open the apache configuration file in your favourite text editor;

sudo gedit /etc/apache2/apache2.conf

and add the following line at the bottom of the file (you can add it anywhere in the file, I just choose the bottom here so that you can easily access it for modification):

Include /etc/phpmyadmin/apache.conf

then restart the web server;

sudo service apache2 restart

Now enter the following url in your browser;

https://localhost/phpmyadmin

You should see a login page for you to enter your username and password, if you’ve not done so.

Username = root

password = YOUR_MYSQL_PASSWORD

phpmyadmin_login_fossnaija

IMAGE: FOSSNAIJA.COM

If successful the phpMyAdmin dashboard appears:

phpmyadmin_homepage_fossnaija

phpmyadmin web homepage.

Congrats!

_ Happy Linux’NG! _

The post How to install phpmyadmin on Linux (Ubuntu) appeared first on Foss Naija.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay