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

Blog    

Recommend

How to build LNMP environment on Ubuntu 20.04

Simple description Since it was built with Centos...

win2008 server security settings deployment document (recommended)

I had been working on the project before the New ...

How to use rem adaptation in Vue

1. Development environment vue 2. Computer system...

Detailed explanation of the core concepts and basic usage of Vuex

Table of contents introduce start Install ① Direc...

mysql charset=utf8 do you really understand what it means

1. Let's look at a table creation statement f...

Vue+Vant implements the top search bar

This article example shares the specific code of ...

Detailed Analysis of or, in, union and Index Optimization in MySQL

This article originated from the homework assignm...

HTML form tag tutorial (2):

This tutorial introduces the application of vario...

Windows cannot start MySQL service and reports error 1067 solution

Suddenly when I logged into MySQL, it said that a...

A brief discussion on tags in HTML

0. What is a tag? XML/HTML CodeCopy content to cl...

Several ways of running in the background of Linux (summary)

1. nohup Run the program in a way that ignores th...

MySQL master-slave replication delay causes and solutions

Table of contents A brief overview of the replica...

Mysql command line mode access operation mysql database operation

Usage Environment In cmd mode, enter mysql --vers...