Download Mysql Installer For Mac

Posted on

If you do NOT have an online connection while running the MySQL Installer, choose the mysql-installer-community file. Note: MySQL Installer is 32 bit, but will install both 32 bit and 64 bit binaries. Online Documentation. MySQL Installer Documentation and Change History. MySQL Connector/J is a Java library, and it is a pure Java driver, so it is platform independent. The various installers offered on the download page are just to simplify installation (although generally, installing Java libraries using an installer makes very little sense to me). MySQL is the most popular open source database management system. It allows you to quickly download and install and run a powerful database system on almost any platform available including Linux, Windows, and Mac OS X etc. Geeks Worldwide. Hunt for something called the Community GPL Downloads, and for a section called MySQL Community Server. That’s the Open Source version of MySQL. Pick a platform from the drop down menu (Mac OS X). Again there are several versions you can download. Bill shows how to install MySQL on a Mac, as well as machines running Windows and Ubuntu Linux. He demonstrates how to create user accounts, assign database access privileges, and manage passwords.

In this tutorial, we are going to learn how to install MySQL community server on Mac and setting up the MySQL in Terminal app.

Mac OS doesn’t come along with the pre-configured version of MySQL, but this step by step guide will make the task easy for you. By the end of this tutorial, you will be able to set up the MySQL server on your Mac system for local development purposes.

Download MySQL Server

Before we start installing MySQL server on mac, we first download the latest version of MySQL from its official site.

Visit and choose the MySQL version that you want to download.

On this page, you will see list of operating systems under the “Select Operating System” dropdown choose the macOS from the list. Then, click on the download button for the MySQL .dmg file. You can download the other MySQL instances as per your operating system requirement.

Install MySQL on Mac

You have to click on the MySQL file to install the MySQL on Mac system. You might get the warning “macOS cannot verify that this app is free from malware”.

To get rid from this issue got to System Preferences > Security & Privacy and click on the “Open Anyway” button. This will allow you to install the MySQL version in your system.

Once the MySQL installation is completed, go to System Preferences and click on the MySQL icon that you can see on the bottom left position.

Here you can see the MySQL is already running and other configurations of MySQL. You can even stop the server by clicking on “stop MySQL server”. Well this is not the only way to start the server, we can even manually start the MySQL server via command line.

Configure MySQL in Mac for Terminal App

To start the MySQL via terminal app, you need to use the following command.

But this command will display the following error on your terminal screen.

“command not found: mysql.server”

To fix this issue, we have to define the MySQL path in the paths file. The easiest way to open the file is to type the following command in the terminal and provide the password.

Include one per line given below paths in the /etc/paths file.

Next, type the command to start the MySQL server.

Here is the output we get when MySQL is started correctly.

We used `sudo` with mysql.server start otherwise it will throw permission errors.

Important MySQL Commands

Here are the important commands that are often used while working with MySQL.

Run the following command to stop mysql server:

Type the below command to restart the MySQL server that is already running:

To verify the current status of MySQL server:

Access Root via Mac Terminal & Create Database

Now, we have reached to essential step of our tutorial. We are all set with the server configurations, now we have to access the MySQL root. When you run the following command it will ask for the password. So you have to type the password that you defined when installing the MySQL initially.

Now we will use the mysql query to create a new database.

You can verify the newly created MySQL database.

Use the newly created “positrondb” db by using the below command.

Create a table in the MySQL database =>‘positrondb’.

Verify the table in the database.

Mysql Download Mac Os


We have completed the MySQL tutorial, and In this tutorial, we learned how to install MySQL community server on Mac OS, How to access root user in the MySQL server, Create Database and Table.

I hope you liked this tutorial, dont forget to share it with others.

macOS Update: While these instructions still work, there are new posts for recent versions of macOS, the latest being Install Apache, PHP, and MySQL on macOS Mojave.

PHP Update: Mac OS X Sierra comes pre-installed with PHP version 5.6, however the latest version of PHP is 7.1. After you complete this post, you should upgrade PHP on Mac OS X.

Note: This post is for new installations. If you have installed Apache, PHP, and MySQL for Mac OS El Capitan, read my post on Updating Apache, PHP, and MySQL for Mac OS X Sierra.

Mac OS X runs atop UNIX. So most UNIX software installs easily on Mac OS X. Furthermore, Apache and PHP come packaged with Mac OS X. To create a local web server, all you need to do is configure Apache and install MySQL.

I am aware of the web server software available for Mac OS X, notably MAMP. These get you started quickly. But they forego the learning experience and, as most developers report, can become difficult to manage.

Running Commands

First, open the Terminal app and switch to the root user so you can run the commands in this post without any permission issues:

Enable Apache on Mac OS X

Verify It works! by accessing http://localhost

Enable PHP for Apache

Mysql download mac os

First, make a backup of the default Apache configuration. This is good practice and serves as a comparison against future versions of Mac OS X.


Now edit the Apache configuration. Feel free to use TextEdit if you are not familiar with vi.

Uncomment the following line (remove #):

Restart Apache:

You can verify PHP is enabled by creating a phpinfo() page in your DocumentRoot.

The default DocumentRoot for Mac OS X Sierra is /Library/WebServer/Documents. You can verify this from your Apache configuration.

Now create the phpinfo() page in your DocumentRoot:

Verify PHP by accessing http://localhost/phpinfo.php

Install MySQL on Mac OS X Sierra

Download Mysql Installer For Mac

Download and install the latest MySQL generally available release DMG for Mac OS X.

The README suggests creating aliases for mysql and mysqladmin. However there are other commands that are helpful such as mysqldump. Instead, you can update your path to include /usr/local/mysql/bin.

Note: You will need to open a new Terminal window or run the command above for your path to update.

Install Mysql Server Mac

Finally, you should run mysql_secure_installation. While this isn't necessary, it's good practice to secure your database.

Connect PHP and MySQL

You need to ensure PHP and MySQL can communicate with one another. There are several options to do so. I do the following:


Additional Configuration (optional)

The default configuration for Apache 2.4 on Mac OS X seemed pretty lean. For example, common modules like mod_rewrite were disabled. You may consider enabling this now to avoid forgetting they are disabled in the future.

I edited my Apache Configuration:

I uncommented the following lines (remove #):

If you develop multiple projects and would like each to have a unique url, you can configure Apache VirtualHosts for Mac OS X.

If you would like to install PHPMyAdmin, return to my original post on installing Apache, PHP, and MySQL on Mac OS X.

Install Mysql Mac Os

Find this interesting? Let's continue the conversation on Twitter.