Brew Install Mysql Mac


A comprehensive installation guide for MySQL and MySQLClient(Python) in MacOS which actually works!!

Hive is a data warehouse tool based on Hadoop for data extraction, transformation, and loading. This is a mechanism that can store, query, and analyze large-scale data stored in Hadoop. In this article, I will take you through How to Install Hive on Mac with Homebrew using Terminal.

  1. Try uninstalling the current version of MySQL first. Use these commands: brew remove mysql brew cleanup. Then you can again attempt to run the update and install commands again. Step 3: Make sure you start the MySQL server again manually: mysql.server start Upgrade MySQL in Windows. Unlike Mac and Linux, Windows can’t use SSH by default.
  2. MySQL is a very popular open source database software. Unfortunately, MySQL does not come install on the Mac so you'll have to install it. I recommend using homebrew (a great Mac package manager) to install it. First, install homebrew. To install go to Brew.sh and follow the instructions. Next use homebrew to install MySQL.
Apr 19, 2019 · 2 Min Read · 23 Likes · 25 Comments

Connecting to MySQL from Python in MacOS is a very problematic and painful process. In this post, we are going to see how to install MySQL and connect a Python application to it using mysqlclient.

Step one: install Homebrew

You need to install Homebrew in you local machine. You can do it by:

Step two: install MySQL

Using Homebrew you can install mysql simply by:

Then setup the credentials in MySQL server using the following command:

Finally if you want to start at login and as a background service, run this:

Macos brew install mysql client


Step three: install MySQL-Connector-C

For connecting any other application to MySQL, you need to install a connector. You can do it like this:

Step four: install XCode-Select


You can do this by:

Step five: install OpenSSL

Please run the following command:

Then add its path to environment using following line:

Step six: unlink MySQL and link MySQL-Connector-C

You need to unlink mysql and link mysql-connector-c:

Step seven: install mysqlclient

You should be able to use pip install mysqlclient without any errors.

Macos Brew Install Mysql Client

Step eight: link MySQL back again

Now, you need to do the opposite of Step six:

Hopefully now mysqlclient should work fine and will have no problem connecting your application from mysql to python.


Step nine: add mysqlclient in virtual env(optional)

if you have mysqlclient installed in the system, then you can use --system-site-packages when creating virtual environment:


But, if you do not want to include all the system packages, and you still face error installing mysqlclient in virtual environment, then try following steps:

In conclusion

Brew Install Mysql Mac Catalina

In this article, we have seen installing MySQL from Homebrew. I never used MySQL installed from Oracle website, so don’t know how to fix it. Better if you uninstall that and install MySQL from scratch using Homebrew.

Last updated: Jul 19, 2021

  • Most Viewed News

    • Download Docker Windows Server 2016
    • Ubuntu Upgrade Docker
    • Google Classroom App For Mac