MySQL 5.7.12 installation and configuration tutorial under Mac OS 10.11

MySQL 5.7.12 installation and configuration tutorial under Mac OS 10.11

How to install and configure MySQL on Mac OS 10.11, mainly pictures, I will briefly explain the steps.

First visit the MySQL official website and download the installer. Of course, you need to register an account online before downloading.

Website address: MySQL download page, download two installers: MySQL Community Server and MySQL Workbench.

MySQL Community Server

Click to enter the download page. At the bottom of the page, there is a download option. Please make sure that the selected platform is Mac OS X, and then download the installation package outlined in red in the figure below. You need to log in to your account when downloading.

After downloading, run mysql.pkg directly. During this process, you need to pay special attention to one thing: write down the mysql password in the prompt box. You can copy the password information and put it in the memo.

After the installation is complete, find MySQL in the system preferences, open and run it.

Then, click to run MySQL Server. Usually, the automatic startup is turned on by default. If you don’t need it like me, you can cancel it.

After completing this step, you still need to know how to open MySQL from the terminal, because we still need to do one more task.

Otherwise, there may be the following two problems:

1. The connection fails when connecting to Workbench, and the prompt is: You must reset your password using ALTER USER statement. . . .

2. When connecting to the Terminal, the following message appears: ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

The main thing is that you have to reset your password again, what a bummer! ! !

Open a terminal and enter the following command:

PATH="$PATH":/usr/local/mysql/bin
mysql -u root -p
#Enter password#Terminal display#Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 5.7.12

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>
#
SET PASSWORD = PASSWORD('new password');

Next, download and install. The steps are basically the same as above:

MySQL Workbench

Drag in the workbench.

After opening, please look at the main interface. There are two buttons after MySQL in the main interface: the first plus button means new MySQL Connection, and the second one means Edit MySQL Connections.

Create a new one first and enter the password. After the Test Connection is successful, click OK.

That's what happened after that.

Wonderful topic sharing: Installation tutorials for different versions of MySQL Installation tutorials for MySQL 5.7 versions Installation tutorials for MySQL 5.6 versions

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Mysql WorkBench installation and configuration graphic tutorial
  • MySQL 5.7.17 and workbench installation and configuration graphic tutorial
  • mysql workbench installation and configuration tutorial under centOS
  • MySQL and MySQL Workbench Installation Tutorial under Ubuntu
  • Solution to the error "libpng12-0 package not installed" when installing mysql workbench in Ubuntu 16.10
  • MYSQL ZIP installation-free version configuration steps and graphical management tool mysql-workbench
  • mysql5.7.20 installation and configuration method graphic tutorial (mac)
  • MySQL 5.7.17 installation and configuration tutorial for Mac
  • MySQL 5.7.13 installation and configuration method graphic tutorial on Mac
  • MySQL5.7+ MySQL Workbench installation and configuration method graphic tutorial under MAC

<<:  Various problems encountered in sending emails on Alibaba Cloud Centos6.X

>>:  js to achieve the effect of light switch

Recommend

HTML Learning Notes--Detailed Explanation of HTML Syntax (Must Read)

1. What is HTML markup language? HTML is a markup...

Example of how to implement embedded table with vue+elementUI

During my internship in my senior year, I encount...

Some details about semicolons in JavaScript

Preface Semicolons in JavaScript are optional, an...

Detailed explanation of MySQL Explain

In daily work, we sometimes run slow queries to r...

CSS3 border effects

What is CSS# CSS (abbreviation of Cascading Style...

How to use MySQL covering index and table return

Two major categories of indexes Storage engine us...

The principle and application of MySQL connection query

Overview One of the most powerful features of MyS...

Detailed analysis of mysql MDL metadata lock

Preface: When you execute a SQL statement in MySQ...

Detailed explanation of monitoring NVIDIA GPU usage under Linux

When using TensorFlow for deep learning, insuffic...

43 Web Design Mistakes Web Designers Should Watch Out For

This is an article about website usability. The a...