Detailed steps to install mysql5.7.18 on Mac

Detailed steps to install mysql5.7.18 on Mac

1. Tools

We need two tools now: MySQL server (mysql-5.7.18), MySQL GUI (mysql-workbench)

The MySQL server contains the entire operating environment of MySQL. After installing it, you can run MySQL well through the command line.

Of course, if you don't like the command line, you can download a GUI tool to manage MySQL. The GUI has rich functions, including permission settings, database creation, table creation, etc.

2. Installation

1.MySQL Server

Download address: https://dev.mysql.com/downloads/mysql/ . I downloaded mysql-5.7.18-macos10.12-x86_64.dmg

After downloading, install it directly without any trouble.

It is worth noting that after the installation, a pop-up window will be prompted for the root account password. Please write it down as we will use it later.

After installation, the mysql command cannot be recognized in the terminal, so it needs to be configured

$ cd /usr/local/bin/
$ sudo ln -fs /usr/local/mysql/bin/mysql mysql
$ mysql --version 

#Can display mysql version description mysql installed successfully

Change the password of the root account:

$ sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables
$ mysql -u root
#Will enter mysql command mode, enter the following commands line by line

UPDATE mysql.user SET authentication_string=PASSWORD('*****') WHERE User='root';
FLUSH PRIVILEGES;
\q

#Verify password after modification

# mysql -u root -p

2. Install GUI

Download address: https://dev.mysql.com/downloads/workbench/ . I downloaded mysql-workbench-community-6.3.9-osx-x86_64.dmg

Download and install, no chatter along the way.

After installation, open Workbench and the interface is as follows:

Click to enter

root

localhost:3306

The first time you log in, you will be prompted to change your password, so just change it.

Enter the Workbench

The installation is now complete!

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:
  • Solution to forgetting the MYSQL database password under MAC
  • Download MySQL 5.7 and detailed installation diagram for MySql on Mac
  • Detailed graphic and text instructions for installing MySQL 5.7.20 on Mac OS
  • Solution to forget password when installing MySQL on Linux/Mac
  • Detailed steps to configure Apache + PHP + MySQL operating environment in Mac OS X
  • What to do if you forget the initial password when installing MySQL on Mac
  • How to modify the forgotten password when installing MySQL on Mac
  • MySQL installation and configuration tutorial for Mac
  • Detailed installation and configuration of MySql on Mac
  • Tutorial on compiling and installing MySQL 5.7.17 from source code on Mac
  • Solution to forgetting mysql password in MAC
  • Configuring MySQL and Squel Pro on Mac

<<:  Native Js implementation of calendar widget

>>:  Steps to configure nginx ssl to implement https access (suitable for novices)

Recommend

How to add fields to a large data table in MySQL

Preface I believe everyone is familiar with addin...

HTML dynamically loads css styles and js scripts example

1. Dynamically loading scripts As the demand for ...

mysql8.0 windows x64 zip package installation and configuration tutorial

MySQL 8 Windows version zip installation steps (d...

Solve the problem of inconsistent front and back end ports of Vue

Vue front and back end ports are inconsistent In ...

How to use the HTML form attributes readonly and disabled

1. readonly read-only attribute, so you can get th...

Perform data statistics on different values ​​of the same field in SQL

Application scenario: It is necessary to count th...

Elementui exports data to xlsx and excel tables

Recently, I learned about the Vue project and cam...

How to correctly create MySQL indexes

Indexing is similar to building bibliographic ind...

DHTML objects (common properties of various HTML objects)

!DOCTYPE Specifies the Document Type Definition (...

VMware vCenter 6.7 installation process (graphic tutorial)

background I originally wanted to download a 6.7 ...

How to make CSS child elements highly consistent with parent elements

Absolute positioning method: (1) Set the parent e...

How to create a flame effect using CSS

The main text starts below. 123WORDPRESS.COM Down...

Let you understand how HTML and resources are loaded

All content in this blog is licensed under Creati...

Example code of the spread operator and its application in JavaScript

The spread operator allows an expression to be ex...