Detailed graphic description of MySql8.023 installation process (first installation)

Detailed graphic description of MySql8.023 installation process (first installation)

First, download the installation package from the MySQL official website. MySQL is open source, so just download it directly.
Here are the download steps:

insert image description here

Then select:

insert image description here

For personal use, I chose this:

insert image description here

After downloading, unzip the downloaded installation package and put it in your favorite location, then set the environment variables:

I am a win10 system, that is, this computer-properties-advanced system settings-environment variables:
Double-click Path in System Variables, and then click New:

insert image description here

Just copy the path of the unzipped bin directory into it!

insert image description here

Then the important step is: create a new text document file in the unzipped root directory and change the suffix to .ini
As shown in the figure:

insert image description here

Open my.ini as a text document and write the following content

[mysqld]
basedir=F:\Environment\mysql-8.0.23-winx64
datadir=F:\Environment\mysql-8.0.23-winx64\data\
port=3306

As administrator again! !
As administrator again! ! !
As administrator again! ! ! !
Open CMD

insert image description here

Change the path to the bin directory under mysql:
Input Statement

mysql -install

After the prompt is successful, enter the data file to initialize

mysql --initialize-insecure --user=mysql

After success, the data folder will appear in the mysql root directory. It should not exist originally!

insert image description here

Bypass password authentication:

mysqld --console --skip-grant-tables --shared-memory

Then open another cmd window with administrator privileges.

Switch to the mysql bin directory and start mysql.

net start mysql

Then use the command to enter the management interface

mysql -u root -p

After entering, use the following command to modify the root password. Please note! Mysql8.0 password modification is different from the previous one!

ALTER user 'root'@'localhost' IDENTIFIED BY 'new password';

After that, refresh it and restart it to use normally:

flush privileges;

The commands used in the above steps should be the following:

mysql -install //Install mysql
mysql --initialize-insecure --user=mysql //Initialize the data file net start mysql //Start the MySQL service mysql -u root -p //Use no password to change the root password ALTER user 'root'@'localhost' IDENTIFIED BY 'new password'; //Change the root password, Mysql8.0 mode flush privileges; //Refresh the database exit //Exit the MySQL management interface net stop mysql //Shut down the MySQL service

Note: For versions prior to 8.0, how to change the password if you forget it

Find the bin directory: mysqld --skip-grant-tables
Open a cmd window again and find the bin directory: mysql will enter the login state
5.7.22 Modify password statement: update user set authentication_string=password('123456') where user='root' and host='localhost';
5.6. Change password statement: update user set password=password('123456') where user='root' and host='localhost'; (I have not tried it, but it is written like this on the Internet)

This is the end of this article about the detailed graphic description of the MySql8.023 installation process (first installation). For more information about the MySql8.023 installation process, 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
  • Some improvements in MySQL 8.0.24 Release Note
  • Detailed steps for Java to connect to MySQL 8.0 JDBC (IDEA version)
  • Detailed analysis of MySQL 8.0 memory consumption
  • MySQL 8.0 New Features - Introduction to the Use of Management Port
  • MySQL 8.0 New Features - Introduction to Check Constraints
  • mysql8.0.23 msi installation super detailed tutorial
  • MySQL 8.0.23 free installation version configuration detailed tutorial
  • How to install mysql8.0.23 under win10 and solve the problem of "the service does not respond to the control function"
  • Basic operations on invisible columns in MySQL 8.0

<<:  IE8 provides a good experience: Activities

>>:  The w3c organization gives style recommendations for html4

Recommend

Implementation example of scan code payment in vue project (with demo)

Table of contents Demand background Thought Analy...

Solutions to common problems using Elasticsearch

1. Using it with redis will cause Netty startup c...

Detailed comparison of Ember.js and Vue.js

Table of contents Overview Why choose a framework...

Web Theory: Don't make me think Reading Notes

Chapter 1 <br />The most important principl...

Install tomcat and deploy the website under Linux (recommended)

Install jdk: Oracle official download https://www...

Python Flask WeChat applet login process and login api implementation code

1. Let’s take a look at the effect first Data ret...

Two box models in web pages (W3C box model, IE box model)

There are two types of web page box models: 1: Sta...

The difference and reasons between the MySQL query conditions not in and in

Write a SQL first SELECT DISTINCT from_id FROM co...

Explain TypeScript enumeration types in detail

Table of contents 1. Digital Enumeration 2. Strin...

How to use history redirection in React Router

In react-router, the jump in the component can be...

Detailed steps to install MySQL on CentOS 7

In CentOS7, when we install MySQL, MariaDB will b...

CSS to achieve Tik Tok subscription button animation effect

I was watching Tik Tok some time ago and thought ...