Hi, a big thanks for this post. Updated my Mac today and all of a sudden my mysql localhost couldn’t connect, so I reinstalled mysql, forgetting to back it up first. Managed to recover all my databases :)

Still works in 2019 (MacBook Pro 2017 model with Mojave installed)