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

SSM implements the mysql database account password ciphertext login function

introduction Our company is engaged in the resear...

How to convert extra text into ellipsis in HTML

If you want to display extra text as ellipsis in ...

SQL Practice Exercise: Online Mall Database User Information Data Operation

Online shopping mall database-user information da...

Disadvantages and reasonable use of MySQL database index

Table of contents Proper use of indexes 1. Disadv...

A brief discussion on JavaScript throttling and anti-shake

Table of contents Throttling and anti-shake conce...

Detailed process of installing Jenkins-2.249.3-1.1 with Docker

Table of contents 1. Install Docker 2. Pull the J...

Causes and solutions for cross-domain issues in Ajax requests

Table of contents 1. How is cross-domain formed? ...

jQuery implements article collapse and expansion functions

This article example shares the specific code of ...

How to view nginx configuration file path and resource file path

View the nginx configuration file path Through ng...

A detailed explanation of the subtle differences between Readonly and Disabled

Readonly and Disabled both prevent users from chan...

Detailed explanation of the fish school algorithm in CocosCreator game

Preface I recently wanted to learn CocosCreator, ...

How to change the CentOS server time to Beijing time

1. I purchased a VPS and CentOS system, and found...