Mysql Server Mac App



This should be really straightforward, but I found myself googling around. I wrote a recent post about how to create a web app with the Laravel PHP framework but connecting to the database was tricky.

First step, find out what version of OS X you are running. Click the apple icon in the top right corner of your screen and click “About This Mac”. I got something like this:

MySQL Mobile Client allow you to access your MySQL database directly without any server setup. You can manage your data with a very clean and simple iOS user interface. BASIC FEATURES:. Connection over SSL/TLS encryption with support for X.509 Certificate authentication. SSH tunnel build-in wit. MySQL for macOS is available in a number of different forms: Native Package Installer, which uses the native macOS installer (DMG) to walk you through the installation of MySQL. For more information, see Chapter 2, Installing MySQL on macOS Using Native Packages. You can use the package installer with macOS.

Next step, head over to the MySQL downloads page.

So with my computer I am running 10.11 and we want the .dmg file. Download Mac OS X 10.10 (x86, 64-bit), DMG Archive. Then you get to this lame screen:

  1. Welcome to part 2 of the MAMP tutorial. In this part we will go over setting up Mysql on your Mac's localhost. Part 1 goes over everything you need to do to setup PHP on a Mac What green means: any lines that you need to replace in this tutorial will be in green. Step 1 Download MYSQL.
  2. Mar 18, 2018 macOS might be the easiest platform to install MySQL on. To do so, simply download the MySQL installation package from the MySQL Download site. I like to use the third link (the DMG). Once downloaded, run the package. The package will ask you a few questions and you can easily just select the default choice Continue reading Install mySQL on macOS.

MySQL is free and open source software (FOSS), you do not need to sign up or create an account. Click “No thanks, just start my download”. I let the download go directly to my “Downloads” folder when prompted, though you could place it anywhere. The download will take some time because it is 350mb, go get a coffee. Once the download is complete. Double click the file and a screen like this will open

Double click it and go through the install process.

When I did it I got an alert box:

Add to path. This went in ~/**.zshrc **because I am using ZSH. If you are using bash for terminal (the default on OS X) this will be the ~/.bashrc file or ~/.bash_profile. This post explains the difference between the two files.

Add the mysql download to your path so that you can use the “mysql” command from the command line.

Then test it out:

Now that we have MySQL installed and accessible from the Terminal, it’s time to connect to the database and start the MySQL server. Let’s log in as root user (root@localhost) and use that funky password that popped up in the alert window after our install. In the above case it’s #fW&tYe?<8?w

Great! Now we can create databases and run SQL queries right from the command line. That’s an awesome start, but there’s no way anyone is going to remember that password, nor is it enjoyable to type in every time we want to run MySQL. The full docs on changing passwords are here. For OSX you can run the command:

The PASSWORD('root') sets my password to “root”. Easy to remember right? You can set your password to anything you like, such as PASSWORD('myN3wp@Ssw0rd').

To stop the server in the terminal run control + D. Congratulations! You’ve installed MySQL on OSX, made it accessible from the command line and updated your password for the root user.

To start setting up a Laravel application and connect to a database using Sequel Pro you can follow my next tutorial:

Thanks for reading!

Update (9/16/17): Expired passwords

When trying to login to MySQL on OSX recently I ran into the following error:

There are a lot of StackOverflow threads and articles about this, many require writing SQL commands, though that was difficult for me without access to the terminal. In order to alleiviate this I found this SO answer that saved me:

Update 03/29/18:

  • Helpful steps for Install MySQL on macOS Sierra as a gist link.

Update 05/14/19:

  • I recently ran into an error when trying to fire up the MySQL shell:

I found the solution in this homebrew issue. Create an empty directory for this path: mkdir /usr/local/etc/my.cnf.d

Total: 78 Average: 4.6

MySQL is among the most widely-used and popular database technologies, so quite a lot of tools have been created in order to make the processes of designing, creating, and administering databases easier and more convenient. However, with all of the possible options, it can be difficult to choose one tool that will fit your requirements best. That is why I prepared a list of 10 MySQL GUI tools that, in my opinion, are the best solutions both for developers and DBAs alike.

Let’s take a closer look at them.

dbForge Studio for MySQL

App

This multi-purpose GUI tool is an IDE that comprises a wide range of features and functionality necessary for MySQL database development and maintenance. It allows you to create and execute queries, develop and debug stored routines, automate database object management, analyze table data via an intuitive interface, and much more.

In addition to dbForge Studio, Devart offers various standalone MySQL developer tools, which you can check here.

Pros:

• Rich code formatting functionality that allows to create and modify code profiles to standardize your code and make it as clean as possible

MariaDB databases are supported

• Ability to create result scripts for SELECT, INSERT, UPDATE, and DELETE statements to a SQL file with the help of the CRUD Generator

See also

MySQL Workbench

MySQL Workbench is a unified visual tool for database architects, developers, and DBAs. It provides various functionality for designing, developing, and administering databases. It’s available in 3 editions – Community, Standard, and Enterprise. Community is a free open-source edition offering a basic set of features, and the remaining two are commercial editions with extended functionality.

Pros:

• Allows seeing server status and health, as well as server logs

• Developed by Oracle, the company behind MySQL itself, so you can be sure MySQL Workbench will be compatible with all recent features of MySQL

• Available for Windows, Linux, and Mac OS X

phpMyAdmin

phpMyAdmin is a web-based MySQL administration tool written in PHP. It’s one of the most popular tools of its kind, mainly due to how easy it is to use and the fact that it’s completely free. It may lack some advanced features other tools provide, but its basic functionality is enough to help you create functioning websites without advanced knowledge of MySQL.

Best

Pros:

Install Mysql Client On Mac

• Can be easily accessed from most computers because it’s web-based

Simple to install and use

• Available in 80 languages – both left-to-right and right-to-left ones

HeidiSQL

HeidiSQL is a lightweight freeware tool for working with databases, be it browsing or editing data, creating and modifying tables, managing user privileges, or other tasks. In addition to Windows, it works with Linux distributions but will require the Wine platform in this case.

Pros:
• Can connect to MySQL databases through an SSH tunnel.
• Allows to batch-insert ASCII and binary files into tables
• Available in a portable version which doesn’t require installation or administrative privileges

Toad Edge for MySQL

Toad Edge for MySQL provides a toolset for database development and administration with features such as schema comparison and synchronization, SQL query monitor, robust data import and export, database snapshotcreation, advanced JSON editor, and more. Toad Edge is available forWindows and Mac OS X.

Pros:

• Powerful JSON data browser/editor functionality

• Session viewer that allows to track current sessions, terminate them, or cancel queries

• Round-the-clock user support

SQLyog

SQLyog is a MySQL management solution for Windows available in three paid editions. It also has a free trial which allows you to test the software before purchasing a license. Its extensive feature list makes up for the fact that it’s not accessible for free – you can synchronize data and schemas, perform scheduled backups, import external data, and much more.

Pros:
• Customizable user interface with various themes
• Multi-threaded query execution
• Shortcuts which allow generating SQL DML statements from the schema definition

Navicat for MySQL

Navicat for MySQL is a set of tools for database developers and administrators which is compatible with MySQL, MariaDB, and cloud databases. A wide range of features provides the ability to simplify the database development process and increase your productivity when working on various management and administration tasks. This tool comes in three paid editions and has a 14-day fully functional free trial to help you evaluate its functionality.

Pros:

• Available for Windows, Mac OS X, and Linux

• Allows synchronizing your connection settings, models, queries, and virtual groups to the Navicat Cloud so you can share them with your coworkers at any time, from any place.

• Ability to print schedule reports in the Windows edition

Aqua Data Studio

Aqua Data Studio is a versatile IDE for relational, cloud, and NoSQL databases with powerful visual data analysis functionality. It allows you to visually build queries, model entity-relationship diagrams, edit data in an Excel-style grid, and perform other database development and administration tasks.

Pros:

• Create engaging visualizations of data and share them with colleagues and customers with the help of the tool’s robust visual analytics capabilities

• Develop and debug scripts in a scripting development environment with a set of open APIs

• View query execution plans and their statistics to understand how to increase overall server performance

Mysql Server Mac App Download

Valentina Studio

This GUI tool allows you to create and maintain databases, queries, object relations, and more. The free edition comprises basic functionality such as editing schemas and creating diagrams for them, server administration, code completion, etc. The paid Pro version provides additional features such as the report designer, query builder, and others.

Pros:

• Provides various database continuous integration tools

• Supports Valentina databases which feature the unique Abstraction Links – they allow developers to use both API and SQL commands to create, delete and modify links between tables, link and unlink records, and more.

• Has a free iOS version

Sequel Pro

Sequel Pro is a free MySQL database management tool that allows performing all basic tasks such as adding, modifying, removing, browsing, and filtering databases, tables, and records, running queries, and more. While other MySQL tools we looked at are available for Windows and other OS, Sequel Pro will only work on Mac OS X. This tool is the successor of the CocoaMySQL database management application.

Pros:

• Easily connects to databases through the TCP/IP protocol

• Supports all MySQL versions starting from 3.x

• Lightweight and easy to use

Conclusion

I presented some information about various GUI tools designed for working with MySQL and facilitating your database development and management processes. These tools and their editions can be divided into two categories: free and paid.

If you only need the essential functionality for your database development and/or your goal is to get familiar with MySQL databases and improve your skills, a freeware tool from one of those we mentioned would be a great choice – for example, HeidiSQL, the free edition of SQL Workbench, Sequel Pro if you’re working on Mac OS X, etc.

On the other hand, if you need extended functionality that will help in any part of the database lifecycle for the most productive and high-quality development and administration, it’s highly recommended to consider some of the MySQL tools for Windows (and other OS) such as the dbForge Studio IDE, Navicat, Toad Edge, or others as they provide the widest range of capabilities.