MySQL 8.0.21 installation tutorial with pictures and text

MySQL 8.0.21 installation tutorial with pictures and text

1. Download the download link

insert image description here

Click download. You may need to log in to your Oracle account. Just log in.

2. Unzip and download to get an installation package

insert image description here

Just unzip it to a directory where you can find it. Mine is like this (you probably don't have the my.ini file)

insert image description here

3. Create my.ini

insert image description here

As shown in the figure, create a new file and change the suffix to ini. It is best not to change the file name. Open the file and copy and paste the following code into it

[mysqld]
# Set port 3306 port=3306
# Set the installation directory of mysql basedir=D:\\mysql-8.0.21-winx64
# Set the storage directory of mysql database data datadir=D:\\mysql-8.0.21-winx64\\data
# Maximum number of connections allowed max_connections=200
# The number of connection failures allowed. This is to prevent someone from trying to attack the database system from this host max_connect_errors = 10
# The default character set used by the server is UTF8
character-set-server=utf8
# The default storage engine that will be used when creating a new table default-storage-engine=INNODB
# By default, the "mysql_native_password" plug-in is used for authentication. default_authentication_plugin=mysql_native_password
[mysql]
# Set the default character set of the mysql client to default-character-set=utf8
[client]
# Set the default port used by the mysql client to connect to the server port = 3306
default-character-set=utf8

These two locations need to be modified according to your own installation path **(data remains unchanged)**

insert image description here
insert image description here

4. Environment Configuration Right-click My Computer and find Properties

insert image description here

Click this

insert image description here

continue

insert image description here
insert image description here

The variable value uses the address of your own bin directory

insert image description here

Then determine

5. Installation

Run cmd as administrator

insert image description here

Enter cd /d D:\mysql-8.0.21-winx64\bin (change to the address of your own bin directory later)

insert image description here

Enter mysqld --initialize --console . If the following screen appears, it is successful. Please remember the password at the end, otherwise it will be troublesome.

insert image description here

Then enter mysqld -install mysql

insert image description here

If the installation is successful, then the installation is successful.

Replenish:
1. If vcruntime140.dll error occurs during installation, go to the download address

insert image description here

Download the one that suits your computer.

This is the end of this article about the detailed graphic and text tutorial of mysql8.0.21 installation. For more relevant mysql8.0.21 installation content, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to deal with the problem of MySQL users forgetting their passwords or password expiration
  • Detailed explanation of MySQL user password expiration function
  • MySQL password expired, resulting in failure to connect to MySQL
  • Descending Index in MySQL 8.0
  • Example of how to deploy MySQL 8.0 using Docker
  • In-depth explanation of binlog in MySQL 8.0
  • How to quickly add columns in MySQL 8.0
  • Detailed explanation of MySQL 8.0 dictionary table enhancement
  • MySQL 8.0.21 installation tutorial under Windows system (illustration and text)
  • MySQL 8.0.21.0 Community Edition Installation Tutorial (Detailed Illustrations)
  • Detailed explanation of MySQL 8.0 password expiration policy

<<:  8 essential JavaScript code snippets for your project

>>:  Detailed explanation of the service problem reported by Ubuntu 20.04 using Xshell through SSH connection

Recommend

Analysis of idea compiler vue indentation error problem scenario

Project scenario: When running the Vue project, t...

MySQL 8.0 New Features - Introduction to the Use of Management Port

Table of contents Preface Connection Management A...

Ubuntu basic settings: installation and use of openssh-server

Record the installation and use of openssh-server...

Simple tutorial on using Navicat For MySQL

recommend: Navicat for MySQL 15 Registration and ...

In-depth explanation of special permissions SUID, SGID and SBIT in Linux

Preface For the permissions of files or directori...

Mini Program natively implements left-slide drawer menu

Table of contents WXS Response Event Plan A Page ...

What is web design

<br />Original article: http://www.alistapar...

CSS3 realizes bouncing ball animation

I usually like to visit the special pages or prod...

Detailed explanation of Linux commands and file search

1. Perform file name search which (search for ...

Creative About Us Web Page Design

Unique “About”-Pages A great way to distinguish yo...

js canvas to realize the Gobang game

This article shares the specific code of the canv...

Introduction to the B-Tree Insertion Process

In the previous article https://www.jb51.net/arti...