How to fully remove phpMyAdmin? [closed]

I have a server with Ubuntu server on it... I installed phpMyAdmin but I made a mistake during installation and I need to start over. I need help uninstalling every single file that came with phpMyAdmin.

Thanks for the answers, your very appreciated.


Solution 1:

If you installed it from the Ubuntu repositories, it's

sudo apt-get purge phpmyadmin

The "purge" instead of "remove" instructs it to remove its configuration files too, including the configuration it added to Apache's configuration directories.

You may be prompted for whether you want to remove its database as well. This will remove the phpMyAdmin-specific database from your MySQL server. It won't harm the MySQL server. In your case, select Yes. If you are not prompted to do this you will need to remove its database manually.

If you installed it manually by extracting files into a web server directory, just delete all those files, and remove its database from your MySQL server assuming you got that far in the installation.