Super detailed MySQL8.0.22 installation and configuration tutorial

Super detailed MySQL8.0.22 installation and configuration tutorial

Hello everyone, today we are going to learn about the installation and configuration of MySQL 8.0.22. Watch it carefully, learn it well, and it is very detailed.

first step

Go to the MySQL official website to download, as shown below:

insert image description here

Step 2

After the download is complete, unzip it to a disk other than drive C, as shown in the following figure:

insert image description here

Step 3

There is no my.ini file in the unzipped directory. It doesn’t matter. You can create my.ini in the installation root directory by yourself (create a new text file and change the file type to .ini) , and write the basic configuration:

[mysqld]
# Set port 3306 port=3306
# Set the installation directory of MySQL basedir=C:\Program Files\MySQL
# Set the storage directory of MySQL database data datadir=C:\Program Files\MySQL\Data
# Maximum number of connections allowed max_connections=200
# The number of connection failures allowed.
max_connect_errors=10
# The default character set used by the server is utf8mb4
character-set-server=utf8mb4
# The default storage engine that will be used when creating a new table default-storage-engine=INNODB
#Default authentication is done with the "mysql_native_password" plugin #mysql_native_password
default_authentication_plugin=mysql_native_password
[mysql]
# Set the default character set of the mysql client to default-character-set=utf8mb4
[client]
# Set the default port used by the mysql client to connect to the server port = 3306
default-character-set=utf8mb4 

insert image description here

Step 4

Initialize MySQL. During installation, to avoid permission errors, we try to run CMD as an administrator. Otherwise, an error will be reported during installation, which will lead to installation failure, as shown in the following figure:

![Insert image description here](https://img-blog.csdnimg.cn/20201029110701159.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQzNzE1MzU0,size_16,color_FFFFFF,t_70#pic_center

Step 5

After opening, enter the bin directory of mysql and enter cd + space + your path, as shown below:

insert image description here

Step 6

Enter mysqld --initialize --console in the bin directory under the MySQL directory, as shown below:

insert image description here

insert image description here

If this happens, go to Baidu and search for VCRUNTIME140_1.dll and download and install it, as shown in the following figure:

insert image description here

1. Unzip the downloaded file and copy the unzipped VCRUNTIME140_1.dll file
2. Open the file explorer, enter the windows folder , enter the system32 folder , and paste it. After pasting, it will prompt that administrator privileges are required, give it to him! !

Step 7

Install the MySQL service, enter mysqld --install [service name] (the service name can be omitted, the default is mysql) , as shown below:

insert image description here

Step 8

After the service is successfully installed, enter net start mysql (start the MySQL service), as shown below:

insert image description here

Step 9

Connect to MySQL, I use Navicat to display it, as shown below:

insert image description here

insert image description here

insert image description here

insert image description here

This way you can use MySQL

Conclusion

This is the end of the introduction to MySQL 8.0.22 installation and configuration. For more information about MySQL 8.0.22 installation and configuration, please search 123WORDPRESS.COM’s previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • MySQL 8.0.28 installation and configuration method graphic tutorial
  • How to install MySQL 8.0.28.0.msi on Windows (with pictures and text)
  • Install MySQL 8.0.28 on Kylin V10 and implement remote access
  • MySQL 8.0.22 installation and configuration method graphic tutorial
  • The latest version of MySQL 8.0.22 download and installation super detailed tutorial (Windows 64 bit)
  • MySQL 8.0.22 compressed package complete installation and configuration tutorial diagram (tested and effective)
  • MySQL 8.0.22 installation and configuration graphic tutorial
  • MySQL 8.0.22 download, installation and configuration method graphic tutorial
  • MySQL 8.0.19 installation and configuration method graphic tutorial
  • MySQL 8.0.28 installation and configuration tutorial under Windows

<<:  Implementation of a simplified version of JSON.stringify and its six major features explained in detail

>>:  Restart all stopped Docker containers with one command

Recommend

JavaScript manual implementation of instanceof method

1. Usage of instanceof instanceof operator is use...

Tips on MySQL query cache

Table of contents Preface Introduction to QueryCa...

A brief analysis of different ways to configure static IP addresses in RHEL8

While working on a Linux server, assigning static...

Mini Program to Implement Calculator Function

This article example shares the specific code of ...

Reasons why MySQL kill cannot kill threads

Table of contents background Problem Description ...

How to upgrade https under Nginx

Purchase Certificate You can purchase it from Ali...

How to use boost.python to call c++ dynamic library in linux

Preface Recently I started using robot framework ...

Essential Handbook for Web Design 216 Web Safe Colors

The color presentation on a web page will be affec...

Linux loading vmlinux debugging

Loading kernel symbols using gdb arm-eabi-gdb out...

How to import, register and use components in batches in Vue

Preface Components are something we use very ofte...

Detailed explanation of nmcli usage in CentOS8

Common nmcli commands based on RHEL8/CentOS8 # Vi...

MySQL deadlock routine: inconsistent batch insertion order under unique index

Preface The essence of deadlock is resource compe...

How to extend Vue Router links in Vue 3

Preface The <router-link> tag is a great to...