Detailed explanation of MySql 5.7.17 free installation configuration tutorial

Detailed explanation of MySql 5.7.17 free installation configuration tutorial

1. Download the mysql-5.7.17-winx64.zip installation package (link: https://dev.mysql.com/downloads/mysql/)

2. Unzip the installation package.

D:\DevelopTool\mysql-5.7.17-winx64 #Unzip directory

3. Create a folder named data in the decompressed directory to store data

D:\DevelopTool\mysql-5.7.17-winx64\data

4. Configure the startup file

Copy the D:\DevelopTool\mysql-5.7.17-winx64\my-default.ini file, rename it to my.ini, and modify the parameters in it as follows:

# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during installation, and will be replaced if you
# *** upgrade to a newer version of MySQL.
[mysqld]
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
#########################
# basedir is the directory after the installation file is unzipped | basedir and datadir can use relative paths # basedir=./..
basedir=D:\\DevelopTool\\mysql-5.7.11-winx64
# datadir is the directory used to store data# datadir=./../data
datadir=D:\\DevelopTool\\mysql-5.7.11-winx64\\data
# port is the port number port=3306
# mar_connections is the maximum number of connections max_connections=20
character_set_server=utf8
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M 
explicit_defaults_for_timestamp=true
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

5. Initialize the data directory

mysqld --defaults-file="D:\DevelopTool\mysql-5.7.17-winx64\my.ini" --initialize-insecure

It will initialize the data directory. Please delete all files in the data directory before executing this command, otherwise it will fail.

You can choose to initialize with --initialize-insecure or --initialize. --initialize-insecure initializes the root password to empty. If you use --initialize to initialize, a random password will be generated.

After successful execution, directory files such as mysql, performance_schema, and sys will be generated in the data directory.

6. Install and start mysql service

#Install service mysqld -install
#Start the service net start mysql
#Enter mysql
mysql -u root -p
#Remove mysql
mysqld -remove

You can refer to the following MySQL topics provided by this site:

Mysql installation tutorials in various systems

Mysql Root Password Operation Skills

MySql Database Getting Started Tutorial

Summary of database operation knowledge in MySQL

The above is a detailed explanation of the MySql 5.7.17 free installation configuration tutorial introduced by the editor. 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. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • Detailed tutorial for upgrading MySQL 5.7.17 free installation version on Windows (x86, 64bit)
  • MySQL 5.7.17 free installation version configuration method graphic tutorial (windows10)
  • MySQL 5.7.17 winx64 free installation version configuration method graphic tutorial
  • Mysql 5.7.17 winx64 free installation version, installation and configuration graphic tutorial under win10 environment

<<:  js dynamically adds example code for a list of circled numbers

>>:  A detailed introduction to Tomcat directory structure

Recommend

An article tells you how to implement Vue front-end paging and back-end paging

Table of contents 1: Front-end handwritten paging...

W3C Tutorial (3): W3C HTML Activities

HTML is a hybrid language used for publishing on ...

Nexus private server construction principle and tutorial analysis

one. Why build a Nexus private server? All develo...

Mysql database design three paradigm examples analysis

Three Paradigms 1NF: Fields are inseparable; 2NF:...

Detailed explanation of how Zabbix monitors the master-slave status of MySQL

After setting up the MySQL master-slave, you ofte...

After docker run, the status is always Exited

add -it docker run -it -name test -d nginx:latest...

HTML tag meta summary, HTML5 head meta attribute summary

Preface meta is an auxiliary tag in the head area...

Comparing Node.js and Deno

Table of contents Preface What is Deno? Compariso...

Comprehensive summary of mysql functions

Table of contents 1. Commonly used string functio...

Implementing shopping cart function based on vuex

This article example shares the specific code of ...

Ideas and codes for implementing waterfall flow layout in uniapp applet

1. Introduction Is it considered rehashing old st...

Install and deploy java8 and mysql under centos7

Generally, learning Java and deploying projects a...

Tomcat server security settings method

Tomcat is an HTTP server that is the official ref...