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

MySQL 8.0.12 decompression version installation tutorial

This article shares the installation tutorial of ...

Solution to Chinese garbled characters when operating MySQL database in CMD

I searched on Baidu. . Some people say to use the...

Implementation of single process control of Linux C background service program

introduce Usually a background server program mus...

Teach you how to use AWS server resources for free

AWS - Amazon's cloud computing service platfo...

SVG+CSS3 to achieve a dynamic wave effect

A vector wave <svg viewBox="0 0 560 20&qu...

Pitfalls and solutions encountered in MySQL timestamp comparison query

Table of contents Pitfalls encountered in timesta...

How to use node to implement static file caching

Table of contents cache Cache location classifica...

Tips on HTML formatting and long files for web design

<br />Related articles: 9 practical suggesti...

Summary of Common Commands for Getting Started with MySQL Database Basics

This article uses examples to describe the common...

Detailed explanation of the use of ElementUI in Vue

Login + sessionStorage Effect display After a suc...

JavaScript built-in date and time formatting time example code

1. Basic knowledge (methods of date objects) 😜 ge...

Summary of the execution issues between mysql max and where

Execution problem between mysql max and where Exe...