mysql-5.7.21-winx64 free installation version installation--Windows tutorial detailed explanation

mysql-5.7.21-winx64 free installation version installation--Windows tutorial detailed explanation

1 Download

The address is: https://dev.mysql.com/downloads/mysql/


2 Unzip to a directory


3 Configuration

Create a new txt document, save it as my.ini, and put it in the MySQL directory

[mysql] 
# Set the default character set of the mysql client to default-character-set=utf8 
[mysqld] 
#Set port 3306 port = 3306 
# Set the installation directory of mysql basedir=D:\Program Files\mysql-5.7.21-winx64 
# Set the storage directory of mysql database data datadir=D:\Program Files\mysql-5.7.21-winx64\data 
# Maximum number of connections allowed max_connections=200 
# The default character set used by the server is the 8-bit latin1 character set character-set-server=utf8 
# The default storage engine that will be used when creating a new table default-storage-engine=INNODB

Note: The paths of basedir and datadir are the paths where your mysql is stored

4 Add the bin directory to the path environment variable


5 Install MySQL Service

Execute mysqld install


If "Missing xxx.dll, please install the Microsoft runtime

6 Generate a data directory (MySQL 5.7.16 and later does not provide a data directory by default)

First enter the bin directory




Run mysqld --initialize-insecure --user=mysql


There will be no prompt after running


Check whether the contents of the data directory are correct


7. Run MySQL Service

net start mysql


The command to shut down the MySQL service is net stop mysql

8 Log in to MySQL

mysql -u root –p


Summarize

The above is the detailed installation of mysql-5.7.21-winx64 free installation version--Windows tutorial introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • MySQL 5.7.22 binary package installation and installation-free version Windows configuration method
  • Windows Server 2008 64-bit MySQL5.6 installation-free version configuration method diagram
  • How to quickly install and deploy MySQL in Windows system (green free installation version)
  • mysql5.7.18.zip Installation-free version configuration tutorial (windows)
  • Detailed tutorial for upgrading MySQL 5.7.17 free installation version on Windows (x86, 64bit)
  • MySQL 5.7.17 free installation version configuration method graphic tutorial (windows10)
  • MySQL 8.0.13 free installation version configuration tutorial under Windows environment

<<:  Tutorial on importing and exporting Docker containers

>>:  Implementation of importing and exporting vue-element-admin projects

Recommend

VMware virtual machine three connection methods example analysis

NAT In this way, the virtual machine's networ...

Vue shopping cart case study

Table of contents 1. Shopping cart example 2. Cod...

HTML structured implementation method

DIV+css structure Are you learning CSS layout? Sti...

Solution to the problem that Docker container cannot be stopped or killed

Docker version 1.13.1 Problem Process A MySQL con...

How to move mysql5.7.19 data storage location in Centos7

Scenario: As the amount of data increases, the di...

XHTML introductory tutorial: Use of list tags

Lists are used to list a series of similar or rela...

JavaScript Timer Details

Table of contents 1. Brief Introduction 2. setInt...

JS+AJAX realizes the linkage of province, city and district drop-down lists

This article shares the specific code of JS+AJAX ...

Linux C log output code template sample code

Preface This article mainly introduces the releva...

HTML6 implements folding menu and accordion menu example code

The main part of the page: <body> <ul id...

Mybatis fuzzy query implementation method

Mybatis fuzzy query implementation method The rev...

Use overflow: hidden to disable page scrollbars

Copy code The code is as follows: html { overflow...

Implementation of Node connection to MySQL query transaction processing

Table of contents Enter the topic mysql add, dele...