MySQL 8.0.18 installation and configuration method graphic tutorial under MacOS

MySQL 8.0.18 installation and configuration method graphic tutorial under MacOS

This article records the installation of MySQL 8.0.18 under MacOS and the successful command line operation for your reference. The specific contents are as follows

①Download MySQL 8.0.18

Download URL: Click to view

After downloading (dmg), install it.

②Start MySQL service


③Configure environment variables

Enter the terminal (vim is used here):

vim ~/.bash_profile

Add at the end of the file:

PATH=$PATH:/usr/local/mysql/bin

Save and exit (ESC -> : -> wq).

Make the configuration take effect:

source ~/.bash_profile

Exit the terminal and re-enter it.

mysql --version

The version number appears to indicate success:

You can also use:

mysql -u root -p

Enter the password to test.

④At this point, all operations have been completed, and you can also use graphical interfaces such as Navicat to operate.

Wonderful topic sharing:

MySQL different versions installation tutorial

MySQL 5.7 installation tutorials for various versions

MySQL 5.6 installation tutorials for various versions

mysql8.0 installation tutorials for various 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 8.0.18 installation and configuration method graphic tutorial under win10 (windows version)
  • MySQL 8.0.18 installation and configuration method graphic tutorial
  • mysql 8.0.18.zip installation and configuration method graphic tutorial (windows 64 bit)
  • MySQL 8.0.18 installation and configuration method graphic tutorial (linux)
  • MySQL 8.0 installation and configuration tutorial
  • MySQL 8.0.11 installation summary tutorial diagram
  • MySQL 8.0.12 installation and configuration method graphic tutorial
  • MySQL 8.0.15 installation and configuration tutorial under Win10
  • MySQL 8.0.16 installation and configuration method graphic tutorial under Windows
  • mysql 8.0.19 win10 quick installation tutorial

<<:  Nginx configuration location matching rules example explanation

>>:  Teach you how to use charAt() in JavaScript to count the most frequently appearing characters and their number of occurrences

Recommend

Native JS to achieve sliding button effect

The specific code of the sliding button made with...

Summary of basic usage of $ symbol in Linux

Linux version: CentOS 7 [root@azfdbdfsdf230lqdg1b...

How to Change Colors and Themes in Vim on Linux

Vim is a text editor that we use very often in Li...

A detailed summary of HTML tag nesting rules suitable for beginners

I have been relearning HTML recently, which can be...

Detailed installation tutorial of zabbix 4.04 (based on CentOS 7.6)

1. Preparation before installation: 1.1 Install J...

MySQL binlog opening steps

Binlog is a binary log file that is used to recor...

Implementation of react loop data (list)

First, let's simulate the data coming from th...

Tutorial on deploying nginx+uwsgi in Django project under Centos8

1. Virtual environment virtualenv installation 1....

MySQL 5.7.17 winx64 installation and configuration method graphic tutorial

Windows installation mysql-5.7.17-winx64.zip meth...

A brief analysis of MySQL backup and recovery

Table of contents 1. Introduction 2. Simple defin...

Specific method to add foreign key constraints in mysql

The operating environment of this tutorial: Windo...

How to use Nginx proxy to surf the Internet

I usually use nginx as a reverse proxy for tomcat...

Will the index be used in the MySQL query condition?

When an employer asks you whether an index will b...