Question

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

Posted October 29, 2021 146 views
OpenLiteSpeed WordPress 1-ClickDigitalOcean Managed MySQL Database

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?

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.

×
Submit an Answer
1 answer

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:
  • 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:
  • sudo rm -rf /etc/mysql /var/lib/mysql /var/log/mysql
  • Finally clean all packages that are not needed:
  • sudo apt autoremove
  • sudo apt autoclean

Hope that this helps.
Regards,
Bobby