Uninstall mariadb on OSX?

Greetings… The Executive VP here wants to run a test, and requires me to uninstall what I have on OSX, run the test, then reinstall it. The install was built from source, not brew.

I completely removed MySQL and reinstalled it from scratch, figuring that would work. But, when I use 'mysql', it tells me that I still have mariadb somewhere in the system (tells me welcome to the mariadb monitor). Obviously, there's something left around that I need to delete, but not sure what it is. Any suggestions?

Joseph Trubisz, CTO, Medmeme

Answer Answered by Daniel Bartholomew in this comment.

If you compiled and then used 'sudo make install' to install MariaDB 5.1.x, MariaDB 5.2.x, or MariaDB 5.3.x then you can uninstall MariaDB with:

sudo make uninstall

If you compiled and installed MariaDB 5.5.x or higher then there is no 'make uninstall'. However, after doing a 'sudo make install' to install MariaDB there will be an 'install_manifest.txt' file at the top level of the source dir. Remove all of the files listed in it and everything you installed will be gone.

On Linux the default is to place everything under '/usr/local/mysql/' so removing that directory is enough to uninstall MariaDB. If you customized the install directory, or if MacOS has a different default then it will be different. In any case the 'install_manifest.txt' file will have the locations.

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.