MySQL 5.7.16 free installation version installation and configuration method graphic tutorial

MySQL 5.7.16 free installation version installation and configuration method graphic tutorial

This article records the installation and configuration method of MySQL 5.7.16. The specific contents are as follows

Step 1: Download

Download

Scroll down to see it and download it according to your needs;

My computer is 64-bit, so I downloaded the Windows (x86, 64-bit), ZIP Archive version;

After downloading, unzip it to where you want to put it;

Step 2: Configuration

1. Configure the bin folder in the root directory to the path environment variable (search Baidu if you don’t know);

Mine is: D:\Program Files\mysql-5.7.16-winx64\bin. Just configure it to the environment variable;

2. Modify or copy a my-default.ini file and rename it to my.ini;

If the path contains \s, it needs to be replaced with \s.
Add the following code:

[mysql] 
# Set the default character set of the mysql client to default-character-set=utf8 
[mysqld] 
#Set port 3306 port = 3306 
# Set the installation directory of mysql basedir=D:\ProgramFiles\mysql-5.7.21-winx64
# Set the storage directory of mysql database data datadir=D:\ProgramFiles\mysql-5.7.21-winx64\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 

3. Enter in the command prompt

mysqld --install MySQL --defaults-file="my.ini"

Install mysql and set "my.ini" as the configuration file. The prompt "Service successfully installed." indicates success;

4. Enter in the command prompt

mysqld --initialize

Initialize the data directory first. This step is not required in versions before 5.7. Starting from 5.7, you need to initialize the data directory first. After the initialization is successful, you will find that there is an additional data folder in the root directory;

5. Enter net start MySQL in the command prompt to start MySQL, and it will prompt that the service has started successfully;

Wonderful topic sharing:

MySQL different versions installation tutorial

MySQL 5.6 installation tutorials for various versions

MySQL 5.7 installation tutorials for various versions

mysql8.0 installation tutorials for various versions

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • MySQL 5.7.16 installation and configuration method graphic tutorial
  • MySQL 5.7.16 zip package installation and configuration method graphic tutorial
  • MySQL 5.7.16 winx64 installation and configuration method graphic tutorial
  • MySQL 5.7.16 free installation version graphic tutorial under Linux
  • How to install mysql5.7.16 on win10 (decompressed version)
  • MySQL 5.7.18 winx64 installation and configuration method graphic tutorial
  • MySQL 5.7.18 free installation version configuration tutorial
  • MySQL 5.7.21 winx64 green version installation and configuration method graphic tutorial
  • MySQL 5.7.21 installation and configuration tutorial under Window10
  • Detailed tutorial for installing mysql5.7.21 under Windows system

<<:  JavaScript implements class lottery applet

>>:  How to use geoip to restrict regions in nginx

Recommend

CSS code for arranging photos in Moments

First, you can open Moments and observe several l...

Implementing search box function with search icon based on html css

Preface Let me share with you how to make a searc...

How to change the Ali source in Ubuntu 20.04

Note that this article does not simply teach you ...

Detailed explanation of Redis master-slave replication practice using Docker

Table of contents 1. Background 2. Operation step...

Configure nginx to redirect to the system maintenance page

Last weekend, a brother project was preparing to ...

js implements random roll call

This article shares the specific code of js to im...

Docker enables multiple port mapping commands

as follows: docker run -d -p 5000:23 -p 5001:22 -...

Detailed explanation of the use of shared memory in nginx

In the nginx process model, tasks such as traffic...

CSS3 creates web animation to achieve bouncing ball effect

Basic preparation For this implementation, we nee...

Encapsulation method of Vue breadcrumbs component

Vue encapsulates the breadcrumb component for you...

CSS--overflow:hidden in project examples

Here are some examples of how I use this property ...

Implementation of Docker data volume operations

Getting Started with Data Volumes In the previous...

HTML+CSS to achieve simple navigation bar function

Without further ado, I'll go straight to the ...