MySQL 5.7.21 winx64 installation and configuration method graphic tutorial under Windows 10

MySQL 5.7.21 winx64 installation and configuration method graphic tutorial under Windows 10

mysql 5.7.21 winx64 installation and configuration method:

Download the community version of MySQL, download address (you need to register an Oracle account before downloading)

Unzip

Configuring environment variables

Add the following to the system variable path: C:\mysql-5.7.21-winx64\bin (pointing to the bin path of mysql)

initialization

Open cmd as an administrator and enter the command (the data directory is created under the installation directory during initialization, otherwise it will report that the path does not exist):

mysqld --initialize --user=mysql --console

A temporary root password will be generated during initialization, and the user needs to remember it for subsequent logins.

Install

Continue to enter the command at the command prompt: mysqld -install

Start the service

net start mysql

Log in

mysql -uroot -p

Change root password

ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';

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 5.7.21 winx64 free installation version configuration method graphic tutorial
  • MySQL 5.7.21 winx64 installation and configuration method graphic tutorial
  • MySQL 5.7.21 winx64 green version installation and configuration method graphic tutorial
  • mysql-5.7.21-winx64 free installation version installation--Windows tutorial detailed explanation

<<:  How to configure static network connection in Linux

>>:  Detailed explanation of JavaScript progress management

Recommend

Use Xshell to connect to the Linux virtual machine on VMware (graphic steps)

Preface: I recently started to study the construc...

How to write DROP TABLE in different databases

How to write DROP TABLE in different databases 1....

Vue+echarts realizes progress bar histogram

This article shares the specific code of vue+echa...

Using keras to judge SQL injection attacks (example explanation)

This article uses the deep learning framework ker...

How is a SQL statement executed in MySQL?

Table of contents 1. Analysis of MySQL architectu...

How to implement image mapping with CSS

1. Introduction Image maps allow you to designate...

How to change the encoding of MySQL database to utf8mb4

The utf8mb4 encoding is a superset of the utf8 en...

SQL injection vulnerability process example and solution

Code example: public class JDBCDemo3 { public sta...

MySQL8 Installer version graphic tutorial

Installation The required documents are provided ...

The problem of form elements and prompt text not being aligned

Recent projects involve the creation of a lot of ...

MySQL 5.7.19 installation and configuration method graphic tutorial (win10)

Detailed tutorial on downloading and installing M...

Several ways to backup MySql database

mysqldump tool backup Back up the entire database...