How to install MySQL 8.0 database on M1 chip (picture and text)

How to install MySQL 8.0 database on M1 chip (picture and text)

1. Download

First of all, I would like to recommend a domestic mirror of MySQL. Although it is not particularly fast, it is still much faster than the official website. At the same time, the resource content is guaranteed and no other messy things will be downloaded.

Address: http://mirrors.sohu.com/mysql/

Select the version you need to download.

Note: You can use command+f to search (Figure 5.7) This time install 8.0

2. Installation

Just continue without thinking.

Select the third one here, click next and set the mysql password

Check the box below to start the MySQL service after the installation is complete

Configuring environment variables

Open the terminal and switch to the root directory to edit .bash_profile

cd ~ 
vim ./.bash_profile

Press the i key to select insert mode and add these two lines of code

export PATH=$PATH:/usr/local/mysql/bin
export PATH=$PATH:/usr/local/mysql/support-files

Press esc to exit: wq to exit

Refresh environment variables

 source ~/.bash_profile

Test whether the run is successful

Finally, please note

If the mysql command does not work after closing the terminal, it is because the Mac terminal does not automatically refresh the environment variables when it starts. To do this, perform the following

vim ~/.zshrc
source ~/.bash_profile

esc :wq to exit

This is the end of this article about the implementation example of installing mysql8.0 database on M1 chip. For more relevant content about installing mysql8.0 on M1 chip, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to install Postgres 12 + pgadmin in local Docker (support Apple M1)
  • Detailed method of installing JDK and IDEA on Mac M1 in 2020
  • Implementation of installing python3.9.1 on M1 chip
  • The whole process of installing python/anaconda on Macbook air m1 (picture and text)

<<:  Several methods and advantages and disadvantages of implementing three-column layout with CSS

>>:  Advantages and Problems of XHTML CSS Website Design

Recommend

Summary of frequently used commands for Linux file operations

0. New operation: mkdir abc #Create a new folder ...

How to develop uniapp using vscode

Because I have always used vscode to develop fron...

How to use watch listeners in Vue2 and Vue3

watch : listen for data changes (change events of...

JavaScript to achieve slow motion animation effect

This article shares the specific code for JavaScr...

How to simulate network packet loss and delay in Linux

netem and tc: netem is a network simulation modul...

HTML scroll bar textarea attribute setting

1. Overflow content overflow settings (set whether...

How to find and delete duplicate records in MySQL

Hello everyone, I am Tony, a teacher who only tal...

Summary of @ usage in CSS (with examples and explanations)

An at-rule is a declaration that provides instruc...

MySQL FAQ series: How to avoid a sudden increase in the size of the ibdata1 file

0. Introduction What is the ibdata1 file? ibdata1...

A brief discussion on the efficiency of MySQL subquery union and in

Recent product testing found a problem that when ...

Linux uses if to determine whether a directory exists.

How to use if in Linux to determine whether a dir...

Tutorial on installing MySQL 8.0.11 under Linux

1. Go to the official website to download the ins...

A detailed introduction to Linux file permissions

The excellence of Linux lies in its multi-user, m...

JavaScript programming through Matlab centroid algorithm positioning learning

Table of contents Matlab Centroid Algorithm As a ...

N ways to center elements with CSS

Table of contents Preface Centering inline elemen...