mysql free installation win10

1, the official website to download free installation: https://dev.mysql.com/downloads/mysql/ 
2, unzip the downloaded file, the new data folder and file my.ini 
Write pictures described here 
3, open my.ini file, paste the following code and save

[mysql] 
# mysql client set the default character set 
default -CHARACTER-SET = UTF8 
[mysqld] 
# 3306 port disposed 
Port = 3306 
# mysql installation directory setting 
the basedir = C: \ Program Files \ MYSQL Based \ mysql5.7 
# Set mysql data storage directory database 
DATADIR = C: \ Program Files \ MYSQL Based \ mysql5.7 \ data 
# maximum number of connections 
max_connections = 200 is 
# character set used by the server defaults to the 8-bit coded character set latin1 
character -set-Server = utf8 
default storage engine that will be used when creating a new table # 
default -storage-engine = INNODB 
skip the permissions check during their login # 
skip_grant_tables

4, Run as administrator cmd.exe, and switch to the mysql installation directory under

5, initialization: mysqld -initialize-insecure

6. Installation: mysqld install

7, start the service: net start mysql

 8、修改密码:update user set authentication_string=password('sa') where user='root';

9, Login: mysql -u root -p

enter password

After the success of the my.ini file skip-grant-tables deleted and you're done.


10, shut down the service: net stop mysql

 

Guess you like

Origin www.cnblogs.com/zhaoyanhaoBlog/p/11120467.html
Recommended