Open In App

How to Install MySQL on macOS?

Last Updated : 11 Jun, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

MySQL is a relational database managing system used for implementing databases in various applications. Whether you are developing a website, mobile app, or backend service, MySQL allows you to store, manage, and query your data efficiently. The database created by MySQL is well-organized and consistent. we can extract data from the database using queries. It is the same operation as we do in SQL query language.

In this article, we will walk you through the installation process for MySQL on macOS, covering everything from downloading the software to verifying its installation and creating your first database.

Key Features of MySQL

MySQL is one of the most popular relational database management systems (RDBMS) in the world. It follows key database properties i.e. ACID (Atomicity, Consistency, Isolation, Durability) ensuring data integrity, providing high performance, scalability, and flexibility, and being open-source.

  • Open-Source: MySQL is free to use, distribute, and modify, making it a highly affordable choice for developers.
  • ACID-Compliant: It guarantees that your transactions are processed reliably, ensuring data integrity (Atomicity, Consistency, Isolation, Durability).
  • High Performance: MySQL offers fast and efficient performance, even with large datasets.
  • Scalability: MySQL can handle increasing data needs as your application grows, making it suitable for both small projects and enterprise-scale applications.
  • Cross-Platform: MySQL runs seamlessly on macOS, Linux, Windows, and more.
  • Data Security: MySQL provides robust security features like SSL encryption and password hashing to keep your data safe.

Steps to Install MySQL on macOS

Follow these easy steps to install MySQL on macOS:

Step 1: Go to the official website of MySQL using any browser and Scroll down there you will find the following link.

Install-MySQL-on-MacOS_1

Step 2: Then click on the MySQL Community Server link.

Install-MySQL-on-MacOS_2

Step 3: If you are using the latest machine, you can simply click download there. But if you are using an older machine then go for archives. As my machine is an older one I have to move to Archives.

Install-MySQL-on-MacOS_3

Step 4: Then choose the version there and download the proper software.

Install-MySQL-on-MacOS_4

Step 5: Then start the MySQL installation process, and click on the continue button.

Install-MySQL-on-MacOS_5

Step 6: Then click on the install button to move forward.

Install-MySQL-on-MacOS_6

Step 7: Wait for the installation process to complete.

Install-MySQL-on-MacOS_7

Step 8: Then click on the Next button for the next process.

Install-MySQL-on-MacOS_8

Step 9: Provide some strong passwords and then click on the Finish button.

Install-MySQL-on-MacOS_9

Step 10: Wait for some time till the process is going on.

Install-MySQL-on-MacOS_10

Step 11: Then you will find your installation is successful.

Install-MySQL-on-MacOS_11

Step 12: At last, go to system preferences, there you will find MySQL is installed.

Install-MySQL-on-MacOS_12

Hence, MySQL installation is successfully done! Now, Let's verify if MySQL is successfully installed or not.

Step 13 : Click Start MySQL Server to start the MySQL service. This ensures that the MySQL server is running on your system.

Step 14: You will be provided with an option to set a root password. Make sure to set a strong password to protect your database.


Create-Database_1

How to Create a Database in MySQL

Now that MySQL is installed and running on your macOS, let’s create a database

1. This command will show how many databases are there in your MySQL Server.

SHOW DATABASES;

Create-Database_2

2. Now, if you want to add a new database, you need to run the following command. It will create a new database.

create database <database_name>;

Create-Database_3

3. Then again run the following command, there you will find your database is added to MySQL.

show databases;

Create-Database_4

Hence, we have successfully created a database using create database command. You are now ready to start using MySQL. MySQL is the best relational database that will keep all your data secure. Many Companies use MySQL because of its solid data security and is supported by multiple applications. So Install MySQL in macOS now and learn SQL in 30 Days - From Basic to Advanced Level!

Troubleshooting Installation Issues

If you encounter issues during the installation process, here are some common solutions:

  • MySQL Not Starting: If the MySQL server isn’t starting, ensure that no other services are using port 3306 (the default MySQL port). You can change the port in the MySQL configuration file if needed.
  • Permission Issues: If you see permission errors while installing or starting MySQL, make sure you have the necessary permissions to install software and access system files.
  • Version Mismatch: If your macOS version isn't compatible with the latest MySQL version, download an older version from the archives on the MySQL download page.

Conclusion

MySQL is a powerful, fast, and reliable relational database management system. By following this article, you’ve learned how to install MySQL on macOS, verify its installation, and create your first database. With its ease of installation across various operating systems like macOS, MySQL ensures data integrity and security, making it a preferred choice for businesses and developers alike. By following simple steps outlined in this article, users can effortlessly install MySQL on macOS and start leveraging its capabilities to manage their data effectively. Again The Process is almost same for the macOS Ventura, Homebrew, Catalina, Monterey and macOS M1.


Next Article

Similar Reads