MySQL 5.7.20 compressed version download and installation simple tutorial

MySQL 5.7.20 compressed version download and installation simple tutorial

1. Download address:

http://dev.mysql.com/downloads/mysql/

https://www.jb51.net/softs/451120.html

1. Go to the official website to download, the latest version should be displayed, select the second one (mysql5.7.20-winx64.zip)

2. After downloading, decompress it directly to the custom directory. The decompressed directory is the installation directory

2. Configure environment variables

1. Add new environment variables, for example:

Variable Name: MYSQL_HOME

Variable value: D:\mysql\mysql5.7.20-winx64

2. Modify the environment variable PATH

Add %MYSQL_HOME%\bin after PATH. Note: Adding new variable values ​​needs to be separated by ;

3. Add my.ini configuration file

1. There is no my.ini configuration file and data folder in the downloaded compressed file. You need to manually create a new text my.ini in the bin directory. If it is placed in the root directory, data cannot be automatically generated (which pitted me for a long time). The content of my.ini is as follows:

[client]
default-character-set=utf8
 [mysqld]
#Unzip directory basedir = %MYSQL_HOME% 
#Unzip directory datadir = %MYSQL_HOME%\data
 port = 3306 
 default-character-set=utf8

4. Initialize mysql and start the mysql service

1. Run the command line cmd as an administrator and enter the bin directory (be sure to enter the bin directory)

Example: cd D:\mysql\mysql5.7.20-winx64\bin

2. Enter the command: mysqld

--initialize-insecure (生成無密碼的root用戶)

A data folder will be generated in the root directory, which contains files

3. Start the service: net start mysql, stop the service: net stop mysql

The mysql service has been started successfully.

4. Set mysql password

mysqladmin -u root password 密碼

5. Success

Others: Remove the service command in the bin directory (mysqld --remove)

Summarize

The above is the simple tutorial for downloading and installing the compressed version of MySQL 5.7.20 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 8.0.12 winx64 download and installation tutorial
  • Tutorial on downloading, installing, configuring and using MySQL under Windows
  • Download MySQL 5.7 and detailed installation diagram for MySql on Mac
  • MySQL 5.7.20 common download, installation and configuration methods and simple operation skills (decompression version free installation)
  • MySQL 5.7.18 download and installation process detailed instructions
  • MySQL 5.7 and above version download and installation graphic tutorial
  • Detailed graphic tutorial for downloading, installing, configuring and using MySQL (win7x64 version 5.7.16)
  • MySQL 5.7 Service Download and Installation Graphical Tutorial (Classic Edition)
  • Detailed explanation of mysql download and installation process

<<:  WePY cloud development practice in Linux command query applet

>>:  Vue custom v-has instruction, steps for button permission judgment

Recommend

MySQL 5.7.18 winx64 installation and configuration method graphic tutorial

The installation of compressed packages has chang...

Some common properties of CSS

CSS background: background:#00ffee; //Set the back...

Web Design Tutorial (1): Steps and Overall Layout

<br /> Note: All texts, except those indicat...

Textarea tag in HTML

<textarea></textarea> is used to crea...

Summary of problems encountered when installing docker on win10 home version

Docker download address: http://get.daocloud.io/#...

The visual design path of the website should conform to user habits

Cooper talked about the user's visual path, w...

Mysql modify stored procedure related permissions issue

When using MySQL database, you often encounter su...

Detailed explanation of jquery tag selector application example

This article example shares the specific code of ...

MySQL 5.6 zip package installation tutorial detailed

Previously, we all used files with the suffix .ms...

Writing a rock-paper-scissors game in JavaScript

This article shares the specific code for writing...

How to install MySQL server community version MySQL 5.7.22 winx64 in win10

Download: http://dev.mysql.com/downloads/mysql/ U...

express project file directory description and detailed function description

app.js: startup file, or entry file package.json:...

Summary of naming conventions for HTML and CSS

CSS naming rules header: header Content: content/c...

Common ways to optimize Docker image size

The Docker images we usually build are usually la...