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

How to set focus on HTML elements

Copy code The code is as follows: <body <fo...

Detailed explanation of HTML document types

Mine is: <!DOCTYPE html> Blog Garden: <!...

IDEA2021 tomcat10 servlet newer version pitfalls

Because the version I used when I was learning wa...

Does the % in the newly created MySQL user include localhost?

Normal explanation % means any client can connect...

JS operation object array to achieve add, delete, modify and query example code

1. Introduction Recently, I helped a friend to ma...

Vue3 setup() advanced usage examples detailed explanation

Table of contents 1. Differences between option A...

Detailed steps to build the TypeScript environment and deploy it to VSCode

Table of contents TypeScript environment construc...

Introduction to version management tool Rational ClearCase

Rational ClearCase is a software configuration ma...

How to design and optimize MySQL indexes

Table of contents What is an index? Leftmost pref...

Detailed explanation and extension of ref and reactive in Vue3

Table of contents 1. Ref and reactive 1. reactive...

Pure CSS to achieve cloudy weather icon effect

Effect The effect is as follows ​ Implementation ...

Echarts Basic Introduction: General Configuration of Bar Chart and Line Chart

1Basic steps of echarts Four Steps 1 Find the DOM...