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:
|
<<: How to set a fixed IP address in CentOS7 virtual machine
>>: Implementation code of short video (douyin) watermark removal tool
One of the most commonly used and discussed data ...
Batch replace part of the data of a field in MYSQ...
Download Tomcat8 image [root@localhost ~]# docker...
Preface In many MySQL test scenarios, some test d...
This article example shares the specific code of ...
When we write pages, we sometimes find that the C...
This article example shares the specific code of ...
Jiedaibao is a mobile phone loan software platfor...
Recently, when I was writing a WeChat applet, the...
Table of contents Tutorial Series 1. Install Mari...
Table of contents 1. Encapsulate complex page dat...
A sophomore asked me how to install and configure...
Antd+react+webpack is often the standard combinat...
1. Install mysql Run the following command to upd...
The project scaffolding built with vue-cli has al...