MySQL 5.7.17 installation graphic tutorial (windows)

MySQL 5.7.17 installation graphic tutorial (windows)

I recently started learning database, and I feel it is a very interesting course, but many of the things involved are new to me, so I want to organize my study notes here. The first thing to sort out is the installation and configuration methods of DBMS MySQL used in the course.

Download

>>> MySQL 5.7 Downloads

Select the corresponding machine and bit number, and click Download.

Unzip and configure

1. Unzip the downloaded MySQL compressed package.

2. Modify the configuration file:

Copy and paste the following text into the my.txt file, change the suffix of my.txt to .ini and replace it with the configuration file (my-default.ini) in the original MySQL installation directory.

[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:\MySql\mysql-5.7.12-winx64
  # Set the storage directory of mysql database data datadir=D:\MySql\mysql-5.7.12-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

Note: The specific paths of basedir and datadir should be filled in according to the actual installation path. Install

1. Enter the bin directory and start installing MySQL:

這里寫圖片描述

2. Initialize (create data directory), enter in the command line:
mysqld --initialize

3. To install, enter in the command line:
mysqld install

4. Start the service and enter in the command line:
net start mysql
In addition, the command to shut down the service is:
net stop mysql

5. Create a user password:
mysql -uroot -p
Enter the password after pressing Enter

Environment variables

In order to avoid switching directories every time in cmd, we add the MySQL bin directory to the Path environment variable:

環境變量

At this point, the installation and configuration of MySQL has been completed.

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:
  • Tutorial on installing mysql5.7.17 on windows10
  • MySQL 5.7.17 installation and configuration method graphic tutorial (windows)
  • MySQL 5.7.17 installation and configuration method graphic tutorial (CentOS7)
  • Mysql 5.7.17 winx64 free installation version, installation and configuration graphic tutorial under win10 environment
  • Detailed process of decompressing and installing mysql5.7.17 zip
  • MySQL 5.7.17 winx64 installation and configuration method graphic tutorial
  • MySQL 5.7.17 installation and configuration tutorial under Linux (Ubuntu)
  • Detailed installation steps for MySQL 5.7.17 decompressed version (ZIP version)
  • MySQL 5.7.17 winx64 installation and configuration graphic tutorial
  • MySQL 5.7.17 64bit installation and configuration method graphic tutorial

<<:  Best tools for taking screenshots and editing them in Linux

>>:  Three ways to share component logic in React

Recommend

How to check the version of Kali Linux system

1. Check the kali linux system version Command: c...

Some common properties of CSS

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

SQL implementation of LeetCode (177. Nth highest salary)

[LeetCode] 177.Nth Highest Salary Write a SQL que...

What to do if you forget your mysql password

Solution to forgetting MySQL password: [root@loca...

How to write a picture as a background and a link (background picture plus link)

The picture is used as the background and the lin...

In-depth understanding of Mysql logical architecture

MySQL is now the database used by most companies ...

The ultimate solution for writing bash scripts with nodejs

Table of contents Preface zx library $`command` c...

MYSQL performance analyzer EXPLAIN usage example analysis

This article uses an example to illustrate the us...

How to use Vue3 mixin

Table of contents 1. How to use mixin? 2. Notes o...

Docker completely deletes private library images

First, let’s take a look at the general practices...

How to determine if the Linux system is installed on VMware

How to determine whether the current Linux system...