MySQL 8.0.23 free installation version configuration detailed tutorial

MySQL 8.0.23 free installation version configuration detailed tutorial

The first step is to download the free installation version of MySQL 8.0.23

Click to download MySQL8.0.23 compressed package

Unzip the file and go to the directory where the file is completely unzipped in the \mysql-8.0.23-winx64 folder

insert image description here

The second step is to create a txt file and rename it to my.ini (the suffix is ​​changed to ini)

insert image description here

The third step is to open my.ini and copy the following content into my.ini

[mysql]
#Set the default character set of MySQL client default-character-set=utf8
[mysqld]
#Set port 3306 port =3306
#Set the installation directory basedir=D:\soft\java\07mysql-8.0.22-winx64
#Set the data storage directory datadir=D:\soft\java\07mysql-8.0.22-winx64\data
#Maximum number of connections allowed max_connections=200
#When creating a new table, the default storage engine will be used. default-storage-engine=INNODB

Notice:

#Set the installation directory basedir=D:\soft\java\07mysql-8.0.22-winx64
#Set the data storage directory datadir=D:\soft\java\07mysql-8.0.22-winx64\data

The installation directory must be modified according to your own file path. The data file does not need to be created manually, but the path must be written

Step 4: Open cmd as an administrator

Search cmd in the Start menu and open it with the shortcut key: Ctrl + Shift + Enter

insert image description here

Enter the bin directory where the file is located

insert image description here

Step 5: Initialize mysql

Execute the command in the bin directory of the MySQL installation directory:

mysqld --initialize --console

After command execution

mysqld --install [service name]
Comment mysqld --remove [service name] to delete the service (no need to execute, just as an extension)

[Note] [MY-010454] [Server] A temporary password is generated for root@localhost: APWCY5ws&hjQ

localhost: followed by APWCY5ws&hjQ, which is the initial password

Step 6: Install and run the service

Execute the command in the bin directory of the MySQL installation directory:

net start mysql
Comment out net stop mysql to stop the service (not necessary to execute, just as an extension)

The service name is arbitrary. I personally recommend using the database version, such as mysql8

Start the service

net start mysql
Comment out net stop mysql to stop the service (not necessary to execute, just as an extension)

Step 7: Change password and password authentication plugin

mysql -u root -p 

insert image description here

Enter the initial password APWCY5ws&hjQ

insert image description here

Successfully entered Mysql

Step 8: Change the initial password

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

The password at the end of executing the SQL statement is the password you want to change

Final expansion

Refresh privileges mysql: FLUSH PRIVILEGES;
Database authorization mysql: GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;

This is the end of this article about the MySQL 8.0.23 free installation version configuration tutorial (detailed explanation). For more relevant MySQL 8.0.23 free installation version configuration 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:
  • MySQL 8.0.24 version installation and configuration method graphic tutorial
  • MySQL 8.0.24 installation and configuration method graphic tutorial
  • MySQL 8.0.23 installation and configuration method graphic tutorial under win10
  • MySQL 8.0.22 compressed package complete installation and configuration tutorial diagram (tested and effective)
  • Detailed tutorial on installing and configuring MySql5.7 on Ubuntu 20.04
  • 10 performance configuration items that need to be adjusted after installing MySQL
  • MySQL 8.0.22 zip compressed package version (free installation) download, installation and configuration steps detailed
  • Super detailed MySQL8.0.22 installation and configuration tutorial
  • MySQL 8.0.22 winx64 installation and configuration graphic tutorial
  • MySQL 8.0.22.0 download, installation and configuration method graphic tutorial
  • CenOS6.7 mysql 8.0.22 installation and configuration method graphic tutorial
  • MySQL 8.0.22 installation and configuration method graphic tutorial under Windows 10
  • MySQL 5.5.27 winx64 installation and configuration method graphic tutorial
  • MySQL 8.0.22 winx64 installation and configuration method graphic tutorial
  • MySQL 8.0.22 download, installation and configuration method graphic tutorial
  • MySQL 8.0.22 installation and configuration graphic tutorial
  • MySQL 8.0.22 installation and configuration method graphic tutorial
  • Detailed tutorial on installation and configuration of compressed version of MySQL database

<<:  js to achieve 3D carousel effect

>>:  How to draw special graphics in CSS

Recommend

JavaScript to achieve accordion effect

This article shares the specific code for JavaScr...

How to delete a property of an object in JavaScript

1. delete delete is the only real way to remove a...

jQuery+Ajax to achieve simple paging effect

This article shares the specific code of jquery+A...

mysql add, delete, modify and query basic statements

grammar Here is the generic SQL syntax for INSERT...

Key issues and solutions for web page access speed

<br /> The website access speed can directly...

CSS flex several multi-column layout

Basic three-column layout .container{ display: fl...

Solution to docker suddenly not being accessible from the external network

According to the methods of the masters, the caus...

Implementation steps of mysql master-slave replication

Table of contents mysql master-slave replication ...

CSS border half or partially visible implementation code

1. Use pseudo-classes to display half of the Bord...

Example code for implementing 3D text hover effect using CSS3

This article introduces the sample code of CSS3 t...

Super simple implementation of Docker to build a personal blog system

Install Docker Update the yum package to the late...

Graphic tutorial for installing MySQL 5.6.35 on Windows 10 64-bit

1. Download MySQL Community Server 5.6.35 Downloa...

How to set up Referer in Nginx to prevent image theft

If the server's images are hotlinked by other...