Here’s How to Install MySQL on MacBook

MySQL is an open-source relational database management system. Knowing MySQL will always help you in your career in any field of computer science. So, if you are a MacBook user and want to know how to install MySQL on your MacBook, this article is for you. In this article, I will take you through a complete guide on installing MySQL on MacBook.

Here’s How to Install MySQL on MacBook

When windows users install MySQL, they see a command line client on their desktop to access their MySQL server. But we don’t find any command line client on the desktop as a MacOS user after installing MySQL. That is why most MacBook users find it hard to install MySQL.

To install MySQL on your MacBook:

  1. Visit the official page of MySQL Community Downloads from here. You will see different versions of the MySQL community server. Click on the first download button and wait for the setup to download.
  2. Once the setup downloads on your MacBook, open it from your downloads folder and complete the installation process by accepting the terms and conditions and following the installation process. After the installation is complete, it will ask you if you want to delete the installation files. It is recommended to delete the installation files.

After completing the installation process, open your terminal and execute the command mentioned below:

/usr/local/mysql/bin/mysql -u root -p

After executing the command mentioned above, the terminal will ask for the password of your MySQL server (which you must have created in the installation process). Enter the password and hit return. Your MySQL server will start.

You can always access your MySQL server from your terminal by executing the command mentioned below:

/usr/local/mysql/bin/mysql -u root -p

Summary

So this is how to install and access MySQL on a MacBook. Unlike Windows users, we don’t find any command line client on the desktop as a MacOS user after installing MySQL. That is why most MacBook users find it hard to install MySQL. I hope you liked this article on installing MySQL on your MacBook. Feel free to ask valuable questions in the comments section below.

Default image
Aman Kharwal

Coder with the ♥️ of a Writer || Data Scientist | Solopreneur | Founder

Articles: 1297

Leave a Reply