Mysql installed in window10

One: Download

  1.1 Download: https://dev.mysql.com/downloads/mysql/

  1.2 extract the D: \ InstallSoftWare \ MYSQL

  2 environment variable configuration     

  Add in the path: D: \ InstallSoftWare \ MYSQL \ mysql-5.7.27-winx64 \ bin

  3 in D: \ InstallSoftWare \ MYSQL \ mysql-5.7.27-winx64 built my.ini file, my.ini basic configuration 

[mysqld] 
# 3306 port disposed 
Port = 3306 
# mysql installation directory setting 
the basedir = D: \ InstallSoftWare \ MYSQL Based \ MySQL- 5.7 . 27 - Winx64 
# Set data store directory mysql database 
DATADIR = D: \ InstallSoftWare \ MYSQL Based \ mysql- 5.7 . 27 - Winx64 \ the Data 
# allow the maximum number of connections 
max_connections = 200 
# allowed number of connection failures. This is to prevent someone from trying to attack the host database system 
max_connect_errors = 10 
# character set used by the server defaults to UTF8 
Character - the SET -server = utf8 
default storage engine that will be used when creating a new table # 
default -storage-Engine =INNODB 
# default "mysql_native_password" plug-in authentication 
default_authentication_plugin = mysql_native_password 
[mysql] 
# mysql client to set the default character set 
default -character- the SET = utf8 
[Client] 
# default settings when connected to the server using the mysql client port 
Port = 3306 
default -character- the SET = utf8

generates data files

    4.1 Run as Administrator cmd, cmd path: C: \ Windows \ System32,

 4.2 execute the command: mysqld --initialize-insecure --user = mysql  

 

Guess you like

Origin www.cnblogs.com/zhouyuqiu/p/11403314.html