MySQL 8.0.20 installation and configuration method graphic tutorial under Windows 10

MySQL 8.0.20 installation and configuration method graphic tutorial under Windows 10

Win10 system locally installed MySQL8.0.20, personally tested and available, also referred to the operation of other masters

1. Download MySQL, official website download address:

MySQL official website: link

You can also download it by clicking the link directly: mysql 8.0.20


2. After downloading, unzip the zip installation package. The installation package structure is shown in the figure:

3. Configure environment variables: Configure the bin folder address of the unzipped installation package to the environment variable Path, as shown in the figure:





3.1 Confirm and exit directly later

4. Create a my.ini file for configuration initialization: There is no my.ini file in the decompressed directory, so you can create it yourself. Add my.ini to the root directory of the MySQL installation package (create a new text file and change the file type to .ini) and write the basic configuration:


5. Run cmd as administrator

6. Enter the bin file of the mysql installation package through the command line: Initialize data command: mysqld --initialize --console

7. Install the service: Command: mysqld --install [service name]. If you reinstall a service name on your computer, you need to add it. The first one is to directly enter the command: mysqld --install

8. Start the service, command: net start mysql

9. Log in to mysql and enter: mysql -u root -p. You will be prompted to enter the password. You will use the initialization password recorded in step 6.

9.1 Please note that if you cannot log in, it must be because the password is entered incorrectly or the service is not started.

10. Change password

ALTER USER "root"@"localhost" IDENTIFIED BY "your new password";

Then log in again and test it!

alright! Done.

Wonderful topic sharing:

MySQL different versions installation tutorial

MySQL 5.7 installation tutorials for various versions

MySQL 5.6 installation tutorials for various versions

mysql8.0 installation tutorials for various versions

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:
  • MySQL 8.0.20 Window10 free installation version configuration and Navicat management tutorial graphic detailed explanation
  • MySQL 5.7.21 installation and configuration tutorial under Window10
  • Install mysql5.7 graphic tutorial under Window10 (decompressed version)
  • Window10 installation of Oracle19C and SQL Developer graphic tutorial

<<:  Detailed explanation of the example of Connect on the Socket (TCP) Client side from the Linux source code

>>:  In-depth explanation of the style feature in Vue3 single-file components

Recommend

JavaScript Shorthand Tips

Table of contents 1. Merge arrays 2. Merge arrays...

Native js to implement form validation function

Table of contents When developing, analyzing the ...

Using JS to determine the existence of elements in an array in ten minutes

Preface In front-end development, you often need ...

Idea configures tomcat to start a web project graphic tutorial

Configure tomcat 1. Click run configuration 2. Se...

Html makes a simple and beautiful login page

Let’s take a look first. HTML source code: XML/HT...

Teach you how to build the vue3.0 project architecture step by step

Table of contents Preface: 1. Create a project wi...

Installation of CUDA10.0 and problems in Ubuntu

The correspondence between tensorflow version and...

How to remotely log in to the MySql database?

Introduction: Sometimes, in order to develop a pr...

Example of how to configure nginx in centos server

Download the secure terminal MobaXterm_Personal F...

How to import Excel files into MySQL database

This article shares with you how to import Excel ...

Solve the problem that the docker container cannot ping the external network

Today, when I was building a redis environment in...

Tutorial on how to quickly deploy clickhouse using docker-compose

ClickHouse is an open source column-oriented DBMS...

How to create a MySQL database (de1) using commands

1. Connect to MYSQL Format: mysql -h host address...

In-depth explanation of MySQL learning engine, explain and permissions

engine Introduction Innodb engine The Innodb engi...