MySQL5.6 green Installation

1. Download

MySQL Installation will need to download the green good three files

(1), MySQL5.6 offline version Installation Package

(2)、Microsoft Visual C++ 

(3)、Microsoft .NET Framework 

1.1, MySQL downloads

MySQL green version of the official website to download the address: https: //dev.mysql.com/downloads/mysql/

Will appear at the top of the browser's address after entering the chart, the following figure shows 8.x download, click on the red area to download other version (note the operating system selection).

1.2 Microsoft Download

Microsoft Visual C ++ (2010 version)

Download: http: //download.microsoft.com/download/A/8/0/A80747C3-41BD-45DF-B505-E9710D2744E0/vcredist_x64.exe

Microsoft .NET Framework 

Download: https: //dotnet.microsoft.com/download/thank-you/net48

Both tools can be found at the following links:

https://visualstudio.microsoft.com/zh-hans/downloads/?rr=https%3A%2F%2Fsocial.msdn.microsoft.com%2FForums%2Fvstudio%2Fen-US%2Fe653a57a-bc32-4134-87bf-df33058f0531%2Fdownload-microsoft-visual-c-2017-redistributable%3Fforum%3Dvssetup

 

2, installation

1, installed two toolkit download

Installation: Double-click the exe file one by one, the installation sequence in no particular order.

2, the green version downloaded MySQL installation package unzip to C: \ Program Files (can be placed in another directory, not necessarily the C: \ Program Files)

 

 3, the my-default.ini the my.ini Rename, and add the following configuration (better to modify coding)

Configuration utf8 encoding configured as follows

[mysql]
default-character-set=utf8

[mysqld]
character_set_server=utf8

 4, using the installation MySQL5.6 dos

Use administrator runs cmd

5, manually type commands to install MySQL

 

 6, modify the root password

UPDATE mysql.user SET password=password('asdf123') WHERE user='root';

 

 7, exit, using the root password, log back in MySQL (do not need to re-open cmd)

 

Here, the database installed

3, remote connection (if not required, may not operate below)

After the above operation two large steps, connections to localhost only connected, that is connected locally, using a remote connection (access provided ip) need to authorize

Remote Connection Procedure:

1, to add a remote machine where the database connection rights, such as the machine ip is 192.168.10.101 (this step is a prerequisite, other ip remote connection is even this ip).

2, on the localhost ip add permissions to other remote connection of 192.168.10.101.

Authorization command is as follows:

grant all privileges on *.* to root@'192.168.10.101' identified by 'asdf123' with grant option;

Command Description:

privileges: rights mean all privileges: all rights (the highest authority)

on * *:.. the name of the database table names, that is, all tables in all databases

to root@'192.168.10.101 ': to username @ remote connection permissions which are connected to the remote ip

identified by '': identified by 'filled it with login password for the database'

with grant option;: can not add these three words.

 

See what ip have a remote connection permissions

语句:select host,user from mysql.user;

Remote connection to explain finished.

 

If you find that reading during the operation have any questions, please correct me.

 

Guess you like

Origin www.cnblogs.com/memory9770/p/11528495.html