Quickly install MySQL5.7 compressed package on Windows

Quickly install MySQL5.7 compressed package on Windows

This article shares with you how to install the MySQL 5.7 compressed package on Windows. The specific details are as follows:

Unzip the compressed package to the specified path

E:\mysql\mysql-5.7.18-winx64 Prepare the my.ini configuration file

# MySQL Server Instance Configuration File
# ---------------------------------------------------------------
# Generated by the MySQL Server Instance Configuration Wizard
#Generate by using the MySQL Service Configuration Wizard # Installation Instructions
#Client Parameter Configuration# CLIENT SECTION
# ----------------------------------------------------------------
[client]
#The client connects to the MySQL database server through port number 3306. If you need to change the port number, you can modify it directly.
port=3306
[mysql]
#The default character set of the client is default-character-set=utf8
#Server-side parameter configuration# SERVER SECTION
# -----------------------------------------------------------------
[mysqld]
#Server port number port=3306
#MySQL database server installation directory basedir=E:\mysql\mysql-5.7.18-winx64
#MySQL database data file directory datadir=E:\mysql\mysql-5.7.18-winx64\Data
#MySQL software character set character-set-server=utf8
#MySQL software storage engine default-storage-engine=INNODB
# Set the SQL mode to strict
#SQL mode of MySQL software sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
#The maximum number of connections for MySQL software max_connections=100
#MySQL software query cache query_cache_size=0
#The total number of tables that can be opened in the MySQL software #table_cache=256
#The maximum value of temporary tables that can be stored in MySQL software memory is tmp_table_size=11M
#The number of client connection threads that can be retained in the MySQL software thread_cache_size=8
#The maximum temporary file size allowed when MySQL software rebuilds the index myisam_max_sort_file_size=100G
#The maximum cache size allowed when MySQL software rebuilds the index myisam_sort_buffer_size=22M
#The maximum keyword cache size in MySQL software key_buffer_size=10M
#The cache size when MySQL software fully scans the MyISAM table read_buffer_size=64K
#MySQL software can insert the cache size of sorted data read_rnd_buffer_size=256K
#MySQL software user sorting cache size sort_buffer_size=256K
#*** INNODB Specific options ***
#About INNODB storage engine parameter settings#Additional memory pool size (5.7.18 does not have this item)
#innodb_additional_mem_pool_size=2M
#About the timing of committing logs innodb_flush_log_at_trx_commit=1
#The size of the cache area for storing log data innodb_log_buffer_size=1M
#Cache size in the cache pool innodb_buffer_pool_size=52M
#Log file size innodb_log_file_size=26M
#The maximum number of threads allowed innodb_thread_concurrency=9

Two of the configurations cannot be used (these two items reported errors when initializing the database)

table_cache=256 //The total number of tables that can be opened in the MySQL software 

����дͼƬ����

innodb_additional_mem_pool_size=2M //Additional memory pool size (5.7.18 does not have this item) 

����дͼƬ����

3. Configure environment variables

Add E:\mysql\mysql-5.7.18-winx64\bin under path

4. Initialize the database

Run cmd or PowerShell as an administrator, enter the E:\mysql\mysql-5.7.18-winx64\bin path and execute the following statement

mysqld –defaults-file=E:\mysql\mysql-5.7.18-winx64\my.ini –initialize –console
–defaults-file is the path to the my.ini configuration file and should be placed in the first parameter position –console is to display the results in the command prompt window

Please note that if there is a Data folder (with content) in the MySQL path (E:\mysql\mysql-5.7.18-winx64), initialization will fail. You can delete it and reinitialize it.

The above is the editor's introduction to quickly installing the MySQL5.7 compressed package on Windows. 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!

You may also be interested in:
  • mysql5.7.18.zip Installation-free version configuration tutorial (windows)
  • Tutorial on installing mysql5.7.18 on windows10
  • Steps to install MySQL 5.7.10 on Windows server 2008 r2
  • MySQL 5.7 installation tutorial (windows)
  • Graphic tutorial on how to modify the initial password of Mysql5.7.11 under Windows
  • Comprehensive analysis of the method of installing mysql5.7 under Windows
  • mysql5.7.13.zip installation tutorial (windows)

<<:  How to set a fixed IP address in CentOS7 virtual machine

>>:  Implementation code of short video (douyin) watermark removal tool

Recommend

Analyze the difference between computed and watch in Vue

Table of contents 1. Introduction to computed 1.1...

HTML code text box limit input text box becomes gray limit text box input

Method 1: Set the readonly attribute to true. INPU...

MySQL master-slave replication configuration process

Main library configuration 1. Configure mysql vim...

Advantages and disadvantages of common MySQL storage engines

Table of contents View all storage engines InnoDB...

Vue Element-ui table realizes tree structure table

This article shares the specific code of Element-...

Detailed explanation of creating and calling MySQL stored procedures

Table of contents Preface Stored Procedure: 1. Cr...

Example of Form action and onSubmit

First: action is an attribute of form. HTML5 has d...

JDBC Exploration SQLException Analysis

1. Overview of SQLException When an error occurs ...

How to upgrade all Python libraries in Ubuntu 18.04 at once

What is pip pip is a Python package management to...

A brief discussion on the magic of parseInt() in JavaScript

cause The reason for writing this blog is that I ...

Detailed explanation of chmod command usage in Linux

chmod Command Syntax This is the correct syntax w...

iframe parameters with instructions and examples

<iframe src=”test.jsp” width=”100″ height=”50″...

How to set mysql to case insensitive

mysql set to case insensitive Windows Go to the d...