The latest mysql-5.7.21 installation and configuration method

The latest mysql-5.7.21 installation and configuration method

1. Unzip the downloaded MySQL compressed package to the installation directory

2. Create a new file my.ini and place it in the MySQL installation directory. The content is as follows:

[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=F:\work office\mysql-5.7.21\mysql-5.7.21-winx64
# Set the storage directory of mysql database data datadir=F:\work office\mysql-5.7.21\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 

3. Install the MySQL service. Open the cmd window as an administrator, switch the directory to the bin directory under the MySQL installation folder, and execute mysqld install

4. Initialize the MySQL database and enter "mysqld --initialize --user=root --console". The red text below is the root password after initialization

5. Start the mysql service

6. Use the generated password to log in to MySQL and change the password by "set password=password('123456')". Here, set the root password to 123456

Summarize

The above is the installation and configuration method of mysql-5.7.21 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.21 winx64 green version installation and configuration method graphic tutorial
  • MySQL 5.7.21 installation and configuration tutorial under Window10
  • MySQL 5.7.21 winx64 free installation version configuration method graphic tutorial
  • MySQL 5.7.21 installation and password configuration tutorial
  • MySQL 5.7.21 installation and configuration method graphic tutorial (window)
  • MySQL 5.7.21 decompression version installation and configuration method graphic tutorial (win10)
  • MySQL 5.7.21 installation and configuration tutorial
  • MySQL 5.7.21 winx64 installation and configuration method graphic tutorial

<<:  Detailed explanation of installing jdk1.8 and configuring environment variables in a Linux-like environment

>>:  Detailed explanation of Angular parent-child component communication

Recommend

Tutorial on installing MySQL 5.7.9 using RPM package under CentOS 7

Recorded MySQL 5.7.9 installation tutorial, share...

JavaScript removes unnecessary properties of an object

Table of contents Example Method 1: delete Method...

Implementation steps for installing java environment in docker

This article is based on Linux centos8 to install...

Usage and principles of provide and inject in Vue3

Preface: When passing data between parent and chi...

Comparison of two implementation methods of Vue drop-down list

Two implementations of Vue drop-down list The fir...

Use pure CSS to achieve scroll shadow effect

To get straight to the point, there is a very com...

Tutorial on using hyperlink tags in XHTML

Hyperlink, also called "link". Hyperlin...

About the problem of offline installation of Docker package on CentOS 8.4

The virtual machine used is CentOS 8.4, which sim...

How to deploy nginx with Docker and modify the configuration file

Deploy nginx with docker, it's so simple Just...

How to understand Vue front-end and back-end data interaction and display

Table of contents 1. Technical Overview 2. Techni...

Flex layout achieves fixed number of rows per line + adaptive layout

This article introduces the flex layout to achiev...

Details of the underlying data structure of MySQL indexes

Table of contents 1. Index Type 1. B+ Tree 2. Wha...

Detailed explanation of MySQL combined index method

For any DBMS, indexes are the most important fact...

Web design must have purpose, ideas, thoughts and persistence

<br />Introduction: This idea came to me whe...