MySQL 5.7.20 installation and configuration method graphic tutorial (win10)

MySQL 5.7.20 installation and configuration method graphic tutorial (win10)

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

1. First download from the official website of MySql

Take the version I selected as an example ( free installation version ), select MYSQL Community Server and then select your corresponding version on the right. Mine is 64-bit. Download the corresponding zip version

After downloading, unzip it to the location you want to store it. I unzipped it to D:\mysql-5.7.20-winx64

After decompression, there is no data file and my.ini configuration file. These need to be added by yourself (additional information is provided below).

The next step is to set the environment variables . I use w10, open the system variables, configure the mysql environment variables, the following figure is to open the system variables through the command line

Create the MYSQL_HOME variable and set the value to the location where you unzipped the files.

Add %MYSQL_HOME%\bin; to Path (note the semicolon at the end)

Finally, save and complete the MySql environment variable configuration.

Next is to add data files and my.ini

Open cmd as an administrator in the D:\mysql-5.7.20-winx64\bin directory (there are several ways for an administrator to open cmd, one of which is to use win+x and then select Command Prompt (Administrator) . After opening, remember to go to the D:\mysql-5.7.20-winx64\bin directory in DOS ) and then run mysqld --initialize-insecure --user=mysql (note there is a space)

Then return to the directory and you will find the data directory

Create a my.ini file with the following content (the content here does not have to be the same as below, you can search on Baidu by yourself, but the content is actually similar)

[client]
port=3306
default-character-set=utf8

[mysqld] 
# Set to your own MYSQL installation directory basedir=D:\mysql-5.7.20-winx64
# Set to MYSQL data directory datadir=D:\mysql-5.7.20-winx64\data
port=3306
character_set_server=utf8
sql_mode=NO_ENGINE_SUBSTITUTION,NO_AUTO_CREATE_USER
# Enable query cache explicit_defaults_for_timestamp=true
skip-grant-tables

After completing the creation of the above two files, run cmd as an administrator under D:\mysql-5.7.20-winx64\bin and enter the command mysqld -install. If Service successfully installed appears, it means that the registration is successful.

Because I have already registered, the above picture will appear when I run the command again

Next, run the net start mysql command (start MYSQL command) and the following figure will appear

net stop mysql command (stop MYSQL command)

At this point, you have completed the download and configuration of MySql.

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.20 Green Edition Installation Detailed Graphic Tutorial
  • mysql5.7.20 installation and configuration method graphic tutorial (mac)
  • mysql 5.7.20 win64 installation and configuration method
  • MySQL 5.7.20\5.7.21 free installation version installation and configuration tutorial
  • MySQL 5.7.20 free installation version configuration method graphic tutorial
  • MySQL 5.7.20 zip installation tutorial
  • MySQL 5.7.20 installation and configuration method graphic tutorial under Windows
  • MySQL 5.7.21 winx64 green version installation and configuration method graphic tutorial
  • MySQL 5.7.21 installation and configuration tutorial under Window10
  • MySQL 5.7.23 installation and configuration method graphic tutorial

<<:  How to use skeleton screen in vue project

>>:  Docker deploys Laravel application to realize queue & task scheduling

Recommend

Detailed explanation of the process of building and running Docker containers

Simply pull the image, create a container and run...

Vue uses vue-quill-editor rich text editor and uploads pictures to the server

Table of contents 1. Preparation 2. Define the gl...

MySQL database optimization: index implementation principle and usage analysis

This article uses examples to illustrate the prin...

Detailed explanation of mandatory and implicit conversion of types in JavaScript

Table of contents 1. Implicit conversion Conversi...

Markup language - specify CSS styles for text

Click here to return to the 123WORDPRESS.COM HTML ...

A detailed tutorial on using Docker to build a complete development environment

Introduction to DNMP DNMP (Docker + Nginx + MySQL...

MySQL obtains the current date and time function example detailed explanation

Get the current date + time (date + time) functio...

Steps and pitfalls of upgrading linux mysql5.5 to mysql5.7

Table of contents Linux MySQL 5.5 upgraded to MyS...

Best Practices for MySQL Upgrades

MySQL 5.7 adds many new features, such as: Online...

MySQL multi-instance configuration application scenario

Table of contents MySQL multiple instances Multi-...

A brief discussion on Python's function knowledge

Table of contents Two major categories of functio...

Convert XHTML CSS pages to printer pages

In the past, creating a printer-friendly version ...

Element UI table realizes drop-down filtering function

This article example shares the specific code for...

Detailed explanation of Nginx Rewrite usage scenarios and code examples

Nginx Rewrite usage scenarios 1. URL address jump...