Share your love
Update phpMyAdmin to the Latest Version in Linux 3 Easy Steps
In this tutorial, you will learn to Update phpMyAdmin to the Latest Version in Linux Manually. As described in the official phpMyAdmin website, phpMyAdmin is a free 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.
For many reasons such as security, compatibility issues, or other common reasons that your software doesn’t take updates, you may want to upgrade your phpMyAdmin version. You can follow the steps below on how you can do it on your Linux server. You can use this guide steps for various Linux distributions including AlmaLinux, Ubuntu, Debian, Rocky Linux, etc.
Table of Contents
Steps To Update phpMyAdmin to the Latest Version in Linux
To complete this guide, you must have access to your server as a non-root user with sudo privileges. Also, you can visit the Orcacore website and search for phpMyAdmin guides to get the installation articles on different Linux operating systems.
These are some example guides for phpMyAdmin installation:
Install and Secure phpMyAdmin on Debian 12
Install and Configure phpMyAdmin on Ubuntu 22.04
phpMyAdmin installation on AlmaLinux 9
Now proceed to the following steps to Update phpMyAdmin to the Latest Version in Linux.
Step 1 – Create a Backup File for phpMyAdmin on Linux
The first step is to get a backup from your phpMyAdmin folder. this will help you to not lose data during the updating process. To do this, you can run the following command in your terminal:
sudo mv /usr/share/phpmyadmin/ /usr/share/phpmyadmin.bak
This will move your phpMyAdmin files to a new backup folder.
Step 2 – Create a new phpMyAdmin File Directory
At this point, you must create a new file for your phpMyAdmin. To do this, you can use the command below:
sudo mkdir /usr/share/phpmyadmin/
Then, switch to your newly created folder with the command below:
cd /usr/share/phpmyadmin/
Step 3 – Update phpMyAdmin by Downloading the Latest version
In this step, you must visit the phpMyAdmin downloads page, and use the following command to download the latest version of phpMyAdmin:
sudo wget https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.zip
Next, extract your downloaded file with the command below:
sudo tar xzf phpMyAdmin-5.2.1-all-languages.zip
Finally, move your extracted file to your phpMyAdmin directory with the command below:
sudo mv phpMyAdmin-5.2.1-all-languages/* /usr/share/phpmyadmin
This will Update phpMyAdmin to the Latest Version in Linux. That’s it, you are done.
Conclusion
At this point, you have learned to Update and Upgrade phpMyAdmin in Linux Manually. You just remember to back up your phpMyAdmin folder first then make your changes. If you do not do this, it will cause the data loss.
Hope you enjoy it. You may like these articles too:
Fix phpMyAdmin SSL Error Connection
Fix APT Error Download is performed unsandboxed as root
FAQs
How to install phpMyAdmin latest version on Ubuntu?
As we described in the above guide steps on Update phpMyAdmin to the Latest Version in Linux, you can easily create a backup file from your phpMyAdmin folder and then download the latest version of phpMyAdmin.
What is the latest version of phpMyAdmin?
At the current time, the latest version available on the official site is phpMyAdmin 5.2.1.
How do I access phpMyAdmin on localhost?
You can access it by using the following URL: http://localhost/phpmyadmin