Detailed tutorial for installing the unzipped version of mysql5.7.28 winx64 on windows

Detailed tutorial for installing the unzipped version of mysql5.7.28 winx64 on windows

1. Unzip

Unzip it to D:\Mysql-5.7 and rename the file to mysql.

2. Create a data folder

Open the mysql folder and create a data folder

3. Add environment variables to mysql

3.1 Open the Control Panel and click 'System and Security'

3.2 After clicking 'System', click 'Advanced system settings'


3.3 Click on environment variables to enter the environment variable setting menu

Select "path" in the system variable, and enter the path value: D:\Mysql-5.7\mysql\bin Save and exit

4. Create a my.ini file in the mysql folder and paste the following content into it

[mysql]
#Set the default character set of MySQL client default-character-set=utf8 
[mysqld]
#Set port 3306 port = 3306
 #Set the installation directory of mysql basedir=D:\\Mysql-5.7\mysql
#Set the storage directory of mysql database data datadir=D:\\Mysql-5.7\mysql\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
# Enable query cache explicit_defaults_for_timestamp=true
skip-grant-tables

5. Open Command Prompt (cmd) (Run as Administrator)

mysqld --initialize
mysqld install 
net start mysql 

Execute the mysql -uroot -p command because we added skip-grant-tables in the my.ini file. Therefore, any value can be entered for the password.

Change password and refresh permissions.

mysql> use mysql; #Switch the database to the mysql database Database changed
mysql> update user set authentication_string=PASSWORD('123456') where user='root'; #Change password Query OK, 1 row affected, 1 warning (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 1

mysql> flush privileges; #Refresh privileges Query OK, 0 rows affected (0.00 sec)

mysql> quit; # Exit the mysql command line

6. Delete the setting to skip password verification

image.png

Enable non-strict mode, otherwise some statements in version 5.6 will be incompatible. For example, if some fields group by but all fields are queried in the query, the SQL statement will report an error.

# Non-strict mode sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

7. Error problem collection

7.1 mysqld --initialize does not respond

I used powersehll to install it, but it didn't work. Then I used cmd window administrator mode, and it said that msvcp120.dll could not be found and msvcr120.dll was missing.

Solution:
Download Visual C++ Redistributable Packages for Visual Studio 2013 from Microsoft's official website

Reference: https://www.okcode.net/article/74194

This is the end of this article about the detailed tutorial on how to install the unzipped version of mysql5.7.28 winx64 on windows. For more relevant content about installing mysql5.7.28 on windows, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to install MySQL 8.0.28.0.msi on Windows (with pictures and text)
  • MySQL 8.0.25 installation and configuration tutorial under Windows 64 bit (most detailed!)
  • Detailed explanation of the problem of installing MYSQL5.7.24 under Windows Server 2012
  • Detailed installation process and basic usage of MySQL under Windows
  • Detailed introduction to the MySQL installation tutorial under Windows
  • The latest version of MySQL 8.0.22 download and installation super detailed tutorial (Windows 64 bit)
  • MySQL 8.0.22 installation and configuration method graphic tutorial under Windows 10
  • MySQL 8.0.19 installation detailed tutorial (windows 64 bit)
  • MySQL 8.0.21 installation tutorial under Windows system (illustration and text)
  • MySQL 8.0.20 Installation Tutorial with Pictures and Text (Windows 64-bit)
  • MySQL 8.0.19 winx64 installation tutorial and change the initial password under Windows 10
  • Tutorial on installing MySQL 8.0.x on Windows

<<:  Markup Language - Phrase Elements

>>:  How to change the domestic image source for Docker

Recommend

Detailed explanation of how Node.js middleware works

Table of contents What is Express middleware? Req...

JavaScript built-in date and time formatting time example code

1. Basic knowledge (methods of date objects) 😜 ge...

Solution to the problem that docker logs cannot be retrieved

When checking the service daily, when I went to l...

Summarize the User-Agent of popular browsers

1. Basic knowledge: Http Header User-Agent User A...

MySQL 5.5.56 installation-free version configuration method

The configuration method of MySQL 5.5.56 free ins...

MySQL statement summary

Table of contents 1. Select database USE 2. Displ...

Summary of Common Mistakes in Web Design

In the process of designing a web page, designers...

Teach you how to build a Hadoop 3.x pseudo cluster on Tencent Cloud

1. Environmental Preparation CentOS Linux release...

Detailed explanation of how to implement secondary cache with MySQL and Redis

Redis Introduction Redis is completely open sourc...

How to use Vue3 to achieve a magnifying glass effect example

Table of contents Preface 1. The significance of ...

CSS to achieve compatible text alignment in different browsers

In the front-end layout of the form, we often nee...

Solution to the problem that Centos8 cannot install docker

Problem [root@zh ~]# [root@zh ~]# [root@zh ~]# yu...