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

Use JavaScript to create page effects

11. Use JavaScript to create page effects 11.1 DO...

Ten popular rules for interface design

<br />This is an article I collected a long ...

In-depth analysis of Vue's responsive principle and bidirectional data

Understanding object.defineProperty to achieve re...

What does mysql database do?

MySQL is a relational database management system....

XHTML 1.0 Reference

Arrange by functionNN : Indicates which earlier ve...

How to install MySQL 5.7.29 with one click using shell script

This article refers to the work of 51CTO blog aut...

Nginx+FastDFS to build an image server

Installation Environment Centos Environment Depen...

Simple writing of MYSQL stored procedures and functions

What is a stored procedure Simply put, it is a se...

HTML Web Page List Tags Learning Tutorial

HTML web page list tag learning tutorial. In HTML ...

Install Apple Mac OS X in VMWare12 Graphic Tutorial

1. Introduction: Because my friend wanted to lear...

Differences and comparisons of storage engines in MySQL

MyISAM storage engine MyISAM is based on the ISAM...