Installation tutorial of mysql5.7.21 decompression version under win10

Installation tutorial of mysql5.7.21 decompression version under win10

Install the unzipped version of Mysql under win10, as follows

Environment: win10 64 bit

Compressed package download address, as shown in the figure

After downloading and unzipping, enter the folder:

Configuration base file—my.ini:

[mysql]
; Set the mysql client default character set default-character-set=utf8
[mysqld]
; Set port 3306 port = 3306 
; Set the installation directory of mysql basedir=D:\ALEX\Mysql\mysql-5.7.21-winx64
; Set the storage directory of mysql database data datadir=D:\ALEX\Mysql\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

As shown in the figure:

Next, open the cmd window as an administrator and switch the directory to the bin directory of your unzipped file. Then enter mysqld install and press Enter to run.

Then, use mysqld --initialize to initialize the data directory.

Finally, start the service: net start mysql

Notice:

Enter mysql -u root -p and press Enter. You will be prompted to enter a password. Here, change the initial default password:

1. Close the service net stop MySQL

2. Open in safe mode: mysqld --skip-grant-tables, and at the same time, open another window (cmd administrator privileges)

3. mysql -u root -p. If the password is empty, just press Enter; you can enter, and then use mysql;

4. Next, change the password:

(Old version) update user set password=password("123456") where user="root"; (5.7.11) update user set authentication_string=password("123456") where user="root"; Finally, flush privileges; and it's OK.

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:
  • How to fix abnormal startup of mysql5.7.21
  • mysql5.7.21 utf8 encoding problem and solution in Mac environment
  • MySql5.7.21 installation points record notes
  • Detailed tutorial for installing mysql5.7.21 under Windows
  • MySQL 5.7.21 installation and password configuration tutorial
  • Detailed installation process of mysql5.7.21 under win10
  • Detailed tutorial for installing mysql5.7.21 under Windows system
  • MySQL 5.7.21 installation and configuration tutorial
  • mysql5.7.21.zip installation tutorial
  • mysql installer web community 5.7.21.0.msi installation graphic tutorial

<<:  Understanding Nginx Current Limitation in One Article (Simple Implementation)

>>:  Detailed explanation of JavaScript private class fields and TypeScript private modifiers

Recommend

Vue detailed introductory notes

Table of contents 1. Introduction 2. Initial Vue ...

HTML meta explained

Introduction The meta tag is an auxiliary tag in ...

Native JS music player

This article example shares the specific code of ...

Optimization of MySQL thread_stack connection thread

MySQL can be connected not only through the netwo...

Nginx uses ctx to realize data sharing and context modification functions

Environment: init_worker_by_lua, set_by_lua, rewr...

Common methods and problems of Docker cleaning

If you use docker for large-scale development but...

Implementation of React page turner (including front and back ends)

Table of contents front end According to the abov...

JavaScript super detailed implementation of web page carousel

Table of contents Creating HTML Pages Implement t...

Sample code for displaying a scroll bar after the HTML page is zoomed out

Here is a record of how to make a scroll bar appe...

Convert psd cut image to div+css format

PSD to div css web page cutting example Step 1: F...

Detailed example of using if statement in mysql stored procedure

This article uses an example to illustrate the us...

SQL implementation of LeetCode (196. Delete duplicate mailboxes)

[LeetCode] 196.Delete Duplicate Emails Write a SQ...

Detailed tutorial on installing Docker and docker-compose suite on Windows

Table of contents Introduction Download and insta...

How to understand the difference between computed and watch in Vue

Table of contents Overview computed watch monitor...