Mysql 5.7.17 winx64 installation tutorial on win7

Mysql 5.7.17 winx64 installation tutorial on win7

Software version and platform: MySQL-5.7.17-winx64, win7 Home Edition

1. Download the installation package

https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.18-winx64.zip

2. Unzip the installation package to your folder. Here, I unzip it to C:\Program Files

3. Open the unzipped folder, I changed its name to Mysql (just for ease of writing), copy my-default.ini, and paste it in the lib folder. Change the file name to my.ini. Copy the following characters and paste them at the bottom of my.ini. You can also modify the fields in the file.

[client]
default-character-set=utf8
[mysqld]
basedir = "C:\Program Files\MySQL"
datadir = "C:\Program Files\MySQL\Mysql\data"
port=3306
default-character-set=utf8

4. Modify environment variables

System variables

Computer-Properties-Advanced System Settings-Environment Variables-System Variables

Create a new variable - variable name MySql_HOME, variable value: C:\Program Files\Mysql

Open Path and add the path where mysql.exe is located, usually C:\Program Files\Mysql\bin

User variables

Add at the end of PATH

%MySql_HOME%\bin;

Note: There must be a ";" at the end of each program path.

5. Configure the database

1. Open CMD as an administrator

2. Type “cd C:\Program Files\Mysql\bin”

3. Register mysql service mysqld --install mysql

4. Initialize the data folder

Type mysqld --initialize-insecure (generate a root account without a password)

It is recommended to copy the above command directly

At this time, a data folder will be generated in the mysql folder, which will contain some files

5. Start the service net start mysql and shut down the service net stop mysql

6. Shut down the mysql service and add the following line under the [mysqld] entry in C:\Program Files\Mysql\lib\my.ini:

skip-grant-tables

Restart the service

Now type in CMD

mysql -u root -p

When the password box pops up, ignore it and press Enter to enter the system

7. Set the password mysqladmin -u root password your password

8. Turn off the mysql service - remove the [mysqld] entry in C:\Program Files\Mysql\lib\my.ini

skip-grant-tables

Restart the service

9. mysql -u root -p the password you set. Login successful

6. Delete mysql

Enter the directory cd C:\Program Files\Mysql\bin

Close the database net stop mysql

Then mysqld --remove

The above is the installation tutorial of Mysql 5.7.17 winx64 on win7 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:
  • Installation method of MySQL 5.7.18 decompressed version under Win7x64
  • Solve the problem that the service cannot be started when installing the decompressed version of mysql 5.7.18 winx64 on Win7 x64
  • MySQL 5.7.17 installation and configuration method graphic tutorial under win7
  • Detailed graphic tutorial for downloading, installing, configuring and using MySQL (win7x64 version 5.7.16)
  • MySQL 5.7 installation and configuration tutorial under Windows 7
  • Detailed installation tutorial of mysql 5.7.11 under Win7 system

<<:  Summary of using the exclamation mark command (!) in Linux

>>:  Detailed explanation of the implementation of manual and automatic tracking of WeChat applet (Taro)

Recommend

Sharing tips on using vue element and nuxt

1. Element time selection submission format conve...

Vue implements an Input component that gets the key display shortcut key effect

I encountered a requirement to customize shortcut...

Example of using setInterval function in React

This article is based on the Windows 10 system en...

Nginx/Httpd load balancing tomcat configuration tutorial

In the previous blog, we talked about using Nginx...

Modify the maximum number of mysql connections and configuration files in docker

1. Find the mysql image docker ps 2. Enter the mi...

Javascript design pattern prototype mode details

Table of contents 1. Prototype mode Example 1 Exa...

How to write the introduction content of the About page of the website

All websites, whether official, e-commerce, socia...

Use shell script to install python3.8 environment in CentOS7 (recommended)

One-click execution To install Python 3.8 in a vi...

JavaScript prototype and prototype chain details

Table of contents 1. prototype (explicit prototyp...

How to display TIF format images in browser

The browser displays TIF format images Copy code T...

Nine advanced methods for deduplicating JS arrays (proven and effective)

Preface The general methods are not listed here, ...

Example code of the spread operator and its application in JavaScript

The spread operator allows an expression to be ex...

Teach you to create custom hooks in react

1. What are custom hooks Logic reuse Simply put, ...

HTML web page image tag

Insert image tag <IMG> The colorful web page...