WordPress

[WordPress on VPS] How To Install and Uninstall phpMyAdmin on Ubuntu

phpMyAdmin is a GUI-based web app to manage your MySQL databases. It’s a very powerful tool to have but it’s also an unnecessary component that you don’t need to use if you are familiar with MySQL basic commands. What’s better, since it’s easy to put on and remove you can quickly install it when needed and uninstall it when finished.

How to install phpMyAdmin

Run the following commands first,

sudo apt-get update
sudo apt-get install phpmyadmin

During the installation, phpMyAdmin will walk you through a basic configuration. Select apache2 as the web server when prompted.

Choose <Yes> when asked to configure database for phpMyAdmin with dbconfig-common.

Then put in the password for the MySQL database and password for phpMyAdmin.

That’s all you need to do.

Now, go to http://domain/phpmyadmin to access it. Use your MySQL credentials to log in.

How to uninstall phpMyAdmin

Once you’ve done your work, you can simply remove it from the server by running the following commands.

sudo dpkg -P phpmyadmin
sudo rm -f /etc/apache2/conf.d/phpmyadmin.conf
sudo service apache2 restart

Select <Yes> when asked to deconfigure database for phpMyAdmin with dbconfig-common.

And <Yes> again when asked to purge the database for phpMyAdmin.

And done.

edge

Share
Published by
edge

Recent Posts

Disable Copilot on Windows 11 via Group Policy GPO

If using Copilot right from the Taskbar isn't your thing, you should disable it. Even…

3 weeks ago

Setting Default Fonts in Word, Excel, Outlook, and PowerPoint via Group Policy

In an environment where standardizing things does matter, setting default fonts in Microsoft Office apps…

1 month ago

Wake-On-LAN (WOL) with Windows and PowerShell

Wake-On-LAN is a networking standard that lets you wake up a computer from either a…

2 months ago

How To Remove Restrictions Set in A Password-Protected PDF File

First of all, this is not to bypass a PDF file that requires a password…

2 months ago

How To Move My Outlook Navigation Bar Back From Left Back To the Bottom

Microsoft has been lurking about the idea of placing the Outlook navigation bar to the…

1 year ago

Headset with Microphone Echoing My Own Voice on Windows, What To Do?

One colleague came up to me the other day asking me to take look at…

1 year ago