当前位置:网站首页>Detailed steps for installing mysql-5.6.16 64 bit green version

Detailed steps for installing mysql-5.6.16 64 bit green version

2022-06-11 06:00:00 Mrcao Jerrold

One 、 Preface

MySQL There are countless versions , Why choose this version ? Because the production environment of many companies is still this version , Like Alibaba cloud RDS Now it is the same version .

Two 、 preparation

download

Official download link

Select the corresponding version to download :
 Insert picture description here

Configuration modification

Unzip the downloaded installation package to the specified directory : I decompressed to D:\software
modify D:\software\mysql-5.6.16-winx64 Under the
my-default.ini

[client]
default-character-set=utf8
[mysql]
default-character-set=utf8

[mysqld]
character-set-server=utf8
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 
environment variable

 Insert picture description here
 Insert picture description here

3、 ... and 、 install

Find the corresponding directory and enter bin below , Type directly in the address bar above cmd
 Insert picture description here
 Insert picture description here
Then it pops up : Insert picture description here
And then execute :

mysqld --initialize --user=mysql --console

Carry on (D:\software\mysql-5.6.16-winx64\ It's my catalog , If not, please modify ):

mysqld --install MySQL --defaults-file="D:\software\mysql-5.6.16-winx64\my-default.ini"

net start mysql

Sign in mysql, You can enter. , Ignore password :

mysql -u root -p

To change the password 123456 As an example :

use mysql;
update user set authentication_string=PASSWORD("123456") where user="root";
flush privileges; 
quit;
原网站

版权声明
本文为[Mrcao Jerrold]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203020531258793.html