MySQL installation tutorial (Windows) zip

I. Download MySQL5.7 (download YORK mirror sites)

Second, the installation

1, extract

2, configure the environment variables

3, create a configuration file my.ini

  • New my.txt, rename my.ini.

  • The my.ini placed in the installation directory, as shown below:

  • Add the following code in my.ini:

[client]
port=3306
default-character-set=utf8
[mysqld]
# 设置为自己MYSQL的安装目录
basedir=D:\mysql-5.7.26-winx64
# 设置为MYSQL的数据目录
datadir=D:\mysql-5.7.26-winx64\data
port=3306
character_set_server=utf8
sql_mode=NO_ENGINE_SUBSTITUTION,NO_AUTO_CREATE_USER
#开启查询缓存
explicit_defaults_for_timestamp=true

#跳过密码验证
skip-grant-tables

 

4, start the installation

  • Open a command window

  • The installation command

mysqld install

  • Perform the initialization command (mysql creates a data folder)

mysqld --initialize-insecure --user=mysql

  • Start MySQL

net start mysql

  • Stop MySQL

net stop mysql

 

Released eight original articles · won praise 3 · Views 893

Guess you like

Origin blog.csdn.net/weixin_42934172/article/details/94584327