Step one: Open URL, https://www.mysql.com, click after the jump to https://www.mysql.com/downloads downloads
![
Step Two: windows operating system version 5.6 after the click will jump to https://dev.mysql.com/downloads/mysql/5.6.html#downloads URL, the page as shown below, to download the good version and operating system, click Download
![
The third step: you can not log in or register, simply click No thanks, just start my download can be downloaded
![
Step four: the download is complete, is a compressed package, direct decompression, can not remember the folder where there are Chinese , it is best to directly extract d drive below, as
![
Step five: Check the contents, the new TXT file, opened with pycharm or notepad ++, it must be utf-8
![
Step Six: Set the configuration file my.ini, must pay attention to every line behind no spaces
[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8
[mysqld]
#设置3306端口
port = 3306
# 设置mysql的安装目录
basedir=D:\mysql-5.6.45-winx64
# 设置mysql数据库的数据的存放目录
datadir=D:\mysql-5.6.45-winx64\data
# 允许最大连接数
max_connections=200
# 服务端使用的字符集默认为8比特编码的latin1字符集
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
Step Seven: behind the PATH system variable to add:
Path (such as D: \ mysql-5.6.45-winx64 \ bin) to your mysql bin folder
<Computer - Properties - Advanced System Settings - edit environment variables --path - When done must be determined
![
Step eight: Enter cmd, pop up a terminal and run as administrator
![
Step 9: Enter the start mysqld
![
Step 10: Program ram live, Ctrl + c to terminate, set --install service mysqld ,
After setting the input net start mysql start the service net stop mysql input termination of service
![
, Then open an administrator or a terminal, d: d is switched to the disc, switching to a path where the bin is provided service mysqld install
![
Step 11: The first password is not required,
![
See the usernames
![
Step 12: Set Password
![
![
Step 13: enter a password every time so, in order not to enter in my.ini profile settings user, password, if not set, enter a password each time you log must
[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8
user = 'root'
password = '123'
[mysqld]
#设置3306端口
port = 3306
# 设置mysql的安装目录
basedir=D:\mysql-5.6.45-winx64
# 设置mysql数据库的数据的存放目录
datadir=D:\mysql-5.6.45-winx64\data
# 允许最大连接数
max_connections=200
# 服务端使用的字符集默认为8比特编码的latin1字符集
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
![
Step 14: The basic setting is completed, it can be used