Updating PHPMyAdmin

Cover photo for the PHPMyAdmin update article

I run an Ubuntu server at work for internal purposes and updated my PHP version to 8.1. That broke PHPMyAdmin (because it was quite outdated) so I had to update it. And the process was fairly simple. Continue reading to learn how I did it.

Firstly, let me say that I got massive help from the ByteXD website: https://bytexd.com/how-to-update-phpmyadmin-to-the-latest-version/. I was getting errors and their article helped me out a ton! Now, on to what I did.

  • Backup the Existing PHPMyAdmin Folder

    I can’t stress this enough: backup backup backup!

    I backed up the PHPMyAdmin folder by typing this command in the terminal:

  • Create a Fresh PHPMyAdmin Folder

    I created a new PHPMyAdmin folder by typing this command in the terminal:

    Then I moved to the new folder:

  • Download PHPMyAdmin 5.2.1

    I had previously downloaded the PHPMyAdmin v5.2.1 and moved it to the folder. But you can download it by using wget in the terminal like so:

  • Extract the PHPMyAdmin Files

    Type the following command in the terminal to extract the files to the newly created PHPMyAdmin folder:

    You should have a folder called “phpMyAdmin-5.2.1-all-languages”. To see it type ls (that’s lowercase L S) in the terminal.

  • Move the Extracted Files to the PHPMyAdmin Folder

    Lastly, we move the extraced files from within the “phpMyAdmin-5.2.1-all-languages” folder to the “PhpMyAdmin” folder. To do so, type this command into the terminal:

    That should be all you need to do. Login to PHPMyAdmin and check out the version. It should be the version you downloaded.

Screenshot of PHPMyAdmin version number

Now if you run into any errors (like I did), check out ByteXD’s post for common errors and solutions (link at the top of this page).

Tags: , , , ,