2

I want to cleanup my system and uninstall mysql. If I do so with:

brew uninstall mysql

will the databases also been deleted? I don't want to leave them on the harddisk.

1

Depends on the location of the database file on disk.

Upon uninstalling mysql, the mysql installation directory is deleted, which is /usr/local/Cellar/mysql in the default install.

1

I found the Default-Database-Location Thanks Tom. I didn't changed it after installing mysql with brew.

So after brew uninstall mysql I had to remove the following folder:

mysql inside of /usr/local/var/

I also searched for the files from this checklist, but found nothing so only did the last thing: brew cleanup and was done.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .