Question

Remove Preinstalled Files after Connecting One Click Wordpress to an Existing Managed MySQL Cluster

I’ve created a Managed MySQL Cluster with the intention of hosting multiple databases for my Wordpress sites. I’ve installed all Wordpress sites with the 1 Click Wordpress Setup, but without checking the Managed MySQL option since that doesn’t allow using an existing Managed MySQL Cluster.

My question is, since all 1 Click Wordpress sites will be linked to this existing Managed MySQL Cluster. I believe there are already preinstalled MySQL and dependencies in the 1 Click setup that are not being used. To keep my droplet as clean as possible, what should be deleted and what is the most efficient way to remove all these redundant files?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

What you could do is to follow the steps here on how to completely remove MySQL from an existing server:

https://www.digitalocean.com/community/questions/completely-uninstall-mysql-server

It more or less goes like this:

  • Make sure MySQL is not running:
  1. sudo systemctl stop mysql
  • Then purge all of the MySQL packages:
sudo apt purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
  • Then delete all of the MySQL files:
  1. sudo rm -rf /etc/mysql /var/lib/mysql /var/log/mysql
  • Finally clean all packages that are not needed:
  1. sudo apt autoremove
  2. sudo apt autoclean

Hope that this helps. Regards, Bobby