Bench update fails on Mac after latest brew update

Bench update is failing on my Mac after the latest upgrade of Homebrew

Library not loaded: /usr/local/opt/mariadb/lib/libmysqlclient.18.dylib

may help,

check path first before executing commands.

Thanks for your reply @saurabh6790

I tried that but I get the following:

Library not loaded: /usr/local/opt/mariadb/lib/libmysqlclient.18.dylib
  Referenced from: /Users/ishanloya/frappe-bench/env/lib/python2.7/site-packages/
  Reason: Incompatible library version: requires version 18.0.0 or later, but libmysqlclient.18.dylib provides version 3.0.0

Tried it again and it worked. If you have homebrew, updating it upgrades mariadb to 10.2 which causes this issue. Can be closed.