mysql5.7 Version Installation steps
1, in the MySQL installation directory to create a new My.ini file, paste the following content, the content of MySQL according to the directory and data storage directory modified to the actual path in their own computer.
[mysql]# 设置mysql客户端默认字符集default-character-set=utf8 [mysqld]#设置3306端口port = 3306 # 设置mysql的安装目录basedir=C:\Program Files\MySQL\MySQL Server 5.7# 设置mysql数据库的数据的存放目录datadir=C:\Program Files\MySQL\MySQL Server 5.7\data# 允许最大连接数max_connections=200# 服务端使用的字符集默认为8比特编码的latin1字符集character-set-server=utf8# 创建新表时将使用的默认存储引擎default-storage-engine=INNODB
2. Right-click to open DOS with administrator privileges, enter the MySQL installation path, enter the following command:
Mysqld--initialize
The system will automatically generate a data storage directory and then enter
Mysqld Install #注册mysql服务
net start MySQL # start MySQL service
WIN10 MySQL Installation service