Win7 installation MySQL 5.6 tutorial diagram

Win7 installation MySQL 5.6 tutorial diagram

1. Download

Mysql: https://dev.mysql.com/downloads/windows/installer/5.6.html Click the download button, then click to start downloading. You can download without logging in.

insert image description here

2. Installation

1. Double-click the installer

insert image description here

2. Click to agree to the agreement and click next

insert image description here

3. Select the installation version, select Custom, and click Next

insert image description here

4. Select MySQL Server 5.6 x64, check all, then select the installation path, next

insert image description here

Select the installation path

insert image description here

5. Before installation, the necessary environment checks will be performed. Click Execute to perform the necessary environment installation.

insert image description here

6. Perform the installation

insert image description here

7. Installation successful, next step

insert image description here

8. Now configure some parameters. Next

insert image description here

9. Select the server type, set port 3306, then check Advanced Settings, next

insert image description here

10. Set the root user password, add a new user, and go to the next step

insert image description here

11. Set the Windows Server Name and default startup of MySQL, next step

insert image description here

12. Set the log parameters, check Bin Log, and leave the others as default. Next, check Bin Log to implement master-slave usage.

insert image description here

13. Set advanced parameters, the default is ok, next step

insert image description here

14. Execute the application configuration, Execute, and Finish after completion

insert image description hereinsert image description here

15. Configuration completed, next step

insert image description here

16. Installation completed, Finish

insert image description here

17. To verify whether the installation is successful, you can use the third-party tool navicat to test it remotely, or you can go to Start->All Programs->Mysql->Run Black Window and execute show databases;

insert image description hereinsert image description here

3. Set up the my.ini file (default encoding)

Location: E:\MySQL\MySQLData5.6\my.ini Find the my.ini file of MySQL, you can set the default encoding, number of concurrent connections, default engine, etc.

[client]
default-character-set = utf8

[mysql]
default-character-set = utf8

[mysqld]
basedir=E:/MySQL/MySQLServer5.6/
datadir=E:/MySQL/MySQLData5.6/Data
character-set-server=utf8
default-storage-engine=INNODB

After the settings are completed, restart the MySQL service and execute win+r, enter services.msc, start the service, and then find mysql56 to restart the service

insert image description here

After the MySQL service is restarted, check whether the encoding has been modified successfully.

mysql> show variables like 'character%';

4. Set up root remote access

Click Start->All Programs->Mysql->Run black window and execute remote access command

mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'the password you set' WITH GRANT OPTION;
mysql> flush privileges; 

insert image description hereinsert image description here

5. Set Windows PATH

1. Configure environment variables: right-click "My Computer" --> "Properties" --> "Advanced System Settings" --> "Environment Variables"

2. Set MYSQL_HOME Create a new MYSQL_HOME variable in the system variables, and the variable value is:

E:\MySQL\MySQLServer5.6 

insert image description here

3. Set PATH Add the variable value to the path variable (it already exists, no need to create a new one):

%MYSQL_HOME%\bin 

insert image description here

4. In this way, you can use the command to start and stop the mysql service

net start mysql56 ## Start the MySQL service net stop mysql56 ## Stop the MySQL service Note that mysql56 is defined according to the windows server name during installation mysql -u root -p 

insert image description here

Summarize

The above is the tutorial illustration of Win7 installation MySQL 5.6 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!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • MySQL 5.6 (Win7 64-bit) download, installation and configuration graphic tutorial
  • 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)
  • MySQL5.5.21 installation and configuration tutorial (win7)
  • MySQL 5.7 installation and configuration tutorial under Windows 7
  • MySQL download, installation, configuration and use tutorial detailed version (win7x64)
  • Win7 system installation MySQL5.5.21 graphic tutorial

<<:  Specific use of Linux gcc command

>>:  Detailed examples of the difference between methods watch and computed in Vue.js

Recommend

A brief discussion on the perfect adaptation solution for Vue mobile terminal

Preface: Based on a recent medical mobile project...

Introduction to scheduled tasks in Linux system

Table of contents 1. Customize plan tasks 2. Sync...

How does the MySQL database implement the XA specification?

MySQL consistency log What happens to uncommitted...

MySQL 5.7.23 decompression version installation tutorial with pictures and text

It is too troublesome to find the installation tu...

What is html file? How to open html file

HTML stands for Hypertext Markup Language. Nowada...

Summary of XHTML application in web design study

<br />Generally speaking, the file organizat...

Summary of MySQL's commonly used database and table sharding solutions

Table of contents 1. Database bottleneck 2. Sub-l...

In-depth explanation of the style feature in Vue3 single-file components

Table of contents style scoped style module State...

Details on using bimface in vue

Table of contents 1. Install Vue scaffolding 2. C...

Detailed explanation of ECharts mouse event processing method

An event is an action performed by the user or th...

Detailed explanation of Vite's new experience

What is Vite? (It’s a new toy on the front end) V...

react+antd.3x implements ip input box

This article shares the specific code of react+an...

Example of implementing a virtual list in WeChat Mini Program

Table of contents Preface analyze Initial Renderi...

MySQL Series 7 MySQL Storage Engine

1. MyISAM storage engine shortcoming: No support ...