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

Share the pitfalls of MySQL's current_timestamp and their solutions

Table of contents MySQL's current_timestamp p...

How to open the port in Centos7

The default firewall of CentOS7 is not iptables, ...

WeChat applet to obtain mobile phone number step record

Preface Recently, I encountered such a problem wh...

MySQL optimization query_cache_limit parameter description

query_cache_limit query_cache_limit specifies the...

Introduction to common MySQL storage engines and parameter setting and tuning

MyISAM, a commonly used storage engine in MySQL c...

Detailed discussion of InnoDB locks (record, gap, Next-Key lock)

Record lock locks a single index record. Record l...

How to assign default values ​​to fields when querying MySQL

need When querying a field, you need to give the ...

Summary of pitfalls in virtualbox centos7 nat+host-only networking

Table of contents 1. Problem Background 2. What a...

What you need to know about msyql transaction isolation

What is a transaction? A transaction is a logical...

Summary of Linux nc command

NC's full name is Netcat (Network Knife), and...

Summary of Mysql common benchmark commands

mysqlslap Common parameter description –auto-gene...

RGBA alpha transparency conversion calculation table

Conversion between rgba and filter values ​​under...