Summary of MySQL5 green version installation under Windows (recommended)

Summary of MySQL5 green version installation under Windows (recommended)

1 Download MySQL

Download address: http://downloads.mysql.com/archives/get/file/mysql-5.7.11-winx64.zip.

2 Installation process

2.1 Unzip mysql-5.7.11-winx64.zip to a directory.

The directory I unzipped is D:\mysqlDev\

2.2 Write the MySQL running configuration file my.ini, or modify the previous .ini file name to my.ini

Add the following content to my.ini:

[mysqld]
# Set the installation directory of mysql basedir = D:\mysqlDev\mysql-5.7.11-winx64\mysql-5.7.11-winx64
# Set the storage directory of mysql database data, must be data, or \\xxx\data
datadir = D:\mysqlDev\mysql-5.7.11-winx64\mysql-5.7.11-winx64\data
#Set port port = 3306
# Set the character set of the MySQL server to default-character-set=gbk
Note: If you do not see the character set string, you do not need to set [client]
# Set the character set of the mysql client to default-character-set=gbk

2.3 Install MySQL service

From the MS-DOS window, go to the directory D:\mysqlDev\mysql-5.7.11-winx64\mysql-5.7.11-winx64\bin and run the following command:

mysqld --install MySQL --defaults-file=D:\mysqlDev\mysql-5.7.11-winx64\mysql-5.7.11-winx64\my.ini

Note: There may be a problem here: Install/Remove of the Service Denied!

If this error is reported, try running cmd as an administrator

2.4 Start MySQL database

Still in the command window above, enter the command: net start MySQL

This starts the mysql service.

If the command does not work, click the computer on the desktop, then click "Manage", open the management tool, find the mysql service, and start it by right-clicking.

2.5 Deletion of Services

Execute mysqld --remove MySQL

The above is the summary of the installation of MySQL5 green version under Windows 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:
  • MySql 5.6.36 64-bit green version installation graphic tutorial
  • MySQL 5.7.11 Green Edition Installation Tutorial with Pictures and Text
  • MySQL5.6.22 Green Edition Installation Detailed Tutorial (Graphical)
  • Tutorial on installing the green version of mysql-5.7.16-winx64 on 64-bit win10 system
  • MySQL 5.7.16 green version installation tutorial detailed explanation
  • MySQL 5.6.17 Green Edition (Free Installation) Installation and Configuration Tutorial
  • MySQL green version (zip decompression version) installation graphic tutorial (mysql-5.6.22-win32.zip)
  • MySQL Green Edition Installation Method Graphic Tutorial
  • Green version mysql installation and configuration
  • MySQL database green version installation tutorial to solve system error 1067

<<:  How to make a centos base image

>>:  Nest.js authorization verification method example

Recommend

Detailed explanation of TS object spread operator and rest operator

Table of contents Overview Object rest attribute ...

Detailed explanation of the relationship between Linux and GNU systems

Table of contents What is the Linux system that w...

CSS to achieve zoom in and out close button (example code)

This effect is most common on our browser page. L...

4 ways to view processes in LINUX (summary)

A process is a program code that runs in the CPU ...

How to replace all tags in html text

(?i) means do not match case. Replace all uppercas...

What qualities should a good advertisement have?

Some people say that doing advertising is like bei...

TypeScript uses vscode to monitor the code compilation process

Install Install ts command globally npm install -...

XHTML Getting Started Tutorial: What is XHTML?

What is HTML? To put it simply: HTML is used to m...

MySQL tutorial thoroughly understands stored procedures

Table of contents 1. Concepts related to stored p...

JavaScript implements the pot-beating game of Gray Wolf

1. Project Documents 2. Use HTML and CSS for page...

Detailed explanation of data type issues in JS array index detection

When I was writing a WeChat applet project, there...

Implementation code for adding links to FLASH through HTML (div layer)

Today a client wants to run an advertisement, and ...

MYSQL METADATA LOCK (MDL LOCK) theory and lock type test

Table of contents MYSQL METADATA LOCK (MDL LOCK) ...