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

How to monitor array changes in JavaScript

Preface When introducing defineProperty before, I...

An example of how Tomcat manages Session

Learned ConcurrentHashMap but don’t know how to a...

Detailed explanation of mysql permissions and indexes

mysql permissions and indexes The highest user of...

Research on the problem of flip navigation with tilted mouse

In this article, we will analyze the production of...

How to deploy LNMP & phpMyAdmin in docker

Environmental preparation: Deploy lnmp on a host ...

Vue backend management system implementation of paging function example

This article mainly introduces the implementation...

Implementation of Mysql User Rights Management

1. Introduction to MySQL permissions There are 4 ...

Using better-scroll component in Vue to realize horizontal scrolling function

About Recently, in the process of learning Vue, I...