brew install mysql-connector-c
gave:
Error: Cannot install mysql-connector-c because conflicting formulae are installed.
mysql: because both install MySQL client libraries
Please `brew unlink mysql` before continuing.
So:
brew unlink mysql
Unlinking /usr/local/Cellar/mysql/5.7.9... 88 symlinks removed
brew install mysql-connector-c
worked fine. But now brew link mysql gives:
Linking /usr/local/Cellar/mysql/5.7.9...
Error: Could not symlink bin/my_print_defaults
Target /usr/local/bin/my_print_defaults
is a symlink belonging to mysql-connector-c. You can unlink it:
brew unlink mysql-connector-c
To force the link and overwrite all conflicting files:
brew link --overwrite mysql
To list all files that would be deleted:
brew link --overwrite --dry-run mysql
Confused. Unlink? Overwrite?
I got stuck in the same situation. I solved the problem as follows.