エラー内容:書き込み権限がありません。ownershipに変更するか、書き込み権限があることを確認してください。
Error: The following directories are not writable by your user:
/usr/local/lib/pkgconfig
You should change the ownership of these directories to your user.
sudo chown -R $(whoami) /usr/local/lib/pkgconfig
And make sure that your user has write permission.
chmod u+w /usr/local/lib/pkgconfig
対処:ownershipを変更
sudo chown -R sbn122 /usr/local/lib/pkgconfig
// fileに対してユーザーアクセス(u)に書き込み権限(w)を設定する
sudo chmod u+w (file名)/usr/local/lib/pkgconfig
brew install mysql