MySQL 8.0.23 installation and configuration method graphic tutorial under win10

MySQL 8.0.23 installation and configuration method graphic tutorial under win10

This article shares the installation and configuration method of MySQL 8.0.23 for your reference. The specific content is as follows

1. First, you need to download the latest version of MySQL from the official MySQL

Unzip to the specified directory such as: D:\WinInstall\mysql-8.0.23-winx64

At this time, you need to create two files in the root directory, namely the data folder and the my.ini file, then use an editor to edit the my.ini file and add

[mysqld]
# Set port 3306 port=3306
# Set the installation directory of mysql basedir=D:\WinInstall\mysql-8.0.23-winx64
# Set the storage directory of mysql database data datadir=D:\WinInstall\mysql-8.0.23-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

Configuration:

First enter the environment variables and create a new one in the system

Then create a new path and enter

%MYSQL_HOME%\bin

Install:

1. Use administrator privileges to go to the D:\WinInstall\mysql-8.0.23-winx64\bin directory

Initialization Command

mysqld --initialize --console #Use this one -- mysqld --initialize --initialize-insecure --user=mysql --console

After initialization, a temporary password is generated for root@localhost: i?Q5dfhi*wof

Get the initial password i?Q5dfhi*wof

2. Installation

mysqld --install

3. Start

net start mysql

4. Enter the password you just entered

mysql -u root -p

If the special letters in the password cannot be distinguished, copy them into a text file.

5.Change new password

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'new password';

Note: Do not restart the MySQL service at this time. If you want to restart it, execute the following commands in order:

exit
mysql -u root -p
ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password' PASSWORD EXPIRE NEVER;
use mysql;
update user set host='%' where user = 'root';
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%';

6. Modify password rules

ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password' PASSWORD EXPIRE NEVER;

7. Authorization

use mysql;
update user set host='%' where user = 'root';

FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'; 
FLUSH PRIVILEGES;

It works well. If you get an error, please check my.ini

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:
  • Installation of mysql5.7 and implementation process of long-term free use of Navicate
  • Detailed introduction to the MySQL installation tutorial under Windows
  • Detailed tutorial on MySQL installation and configuration
  • Detailed installation process and basic usage of MySQL under Windows

<<:  Example of how to configure nginx to implement SSL

>>:  Vue implements real-time refresh of the time display in the upper right corner

Recommend

MySQL 8.0.3 RC is about to be released. Let’s take a look at the changes

MySQL 8.0.3 is about to be released. Let’s take a...

Solution to the failure of entering the container due to full docker space

Since the problem occurred rather suddenly and th...

How to use border-image to implement text bubble border sample code

During the development activity, I encountered a ...

Several methods of deploying multiple front-end projects with nginx

I have summarized 3 methods to deploy multiple fr...

Comparative Analysis of UI Applications of Image Social Networking Sites (Figure)

In our life, work and study, social networks have ...

css Get all elements starting from the nth one

The specific code is as follows: <div id="...

Simple encapsulation of axios and example code for use

Preface Recently, when I was building a project, ...

Summary of the characteristics of SQL mode in MySQL

Preface The SQL mode affects the SQL syntax that ...

Detailed explanation of Truncate usage in MYSQL

This article guide: There are two ways to delete ...

Implement a simple data response system

Table of contents 1. Dep 2. Understand obverser 3...

How to quickly build your own server detailed tutorial (Java environment)

1. Purchase of Server 1. I chose Alibaba Cloud...

Q&A: Differences between XML and HTML

Q: I don’t know what is the difference between xml...