下载地址
https://dev.mysql.com/downloads/mysql/5.6.html#downloads
修改my.ini
[client]
port=3306
#客户端字符类型,与服务端一致就行,建议utf8
default-character-set=utf8
[mysqld]
#绑定IPv4和3306端口
bind-address = 0.0.0.0
port = 3306
#服务端字符类型,建议utf8
character_set_server=utf8
# 设置mysql的安装目录
basedir=E:\Program Files\MySQL\mysql-5.6.43-winx64
# 设置mysql数据库的数据的存放目录
datadir=E:\Program Files\MySQL\mysql-5.6.43-winx64\data
# 允许最大连接数
max_connections=201
需将bin目录加到环境变量
安装
mysqld -install
修改密码
use mysql;
UPDATE user SET password=PASSWORD("mio") WHERE user='root';
FLUSH PRIVILEGES;