Uninstalling one package version does not stop its daemon

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the unix category.

Last Updated: 2022-05-26

We wanted to move from MYSQL 5.6 to 5.7.

We got rid of 5.6 from the machine by brew uninstall. Yet when we ran the mysql client in the command line - which itself was version 5.7 mind you - it connected to the 5.6 database.

When we LSOF-ed to view actual files in use by the process - we saw it was using some 5.6 files.

The issue was that the old daemon was still hanging around and needed to be killed $ brew service stop mysql.