1、下载ZIP安装包
2、新建my.ini配置文件,复制如下内容
[mysqld] port = 3306 basedir=E:\mysql-5.7.22-winx64 (根据实际修改) datadir=E:\mysql-5.7.22-winx64\data max_connections=200 character-set-server=utf8 default-storage-engine=INNODB sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES skip-grant-tables [mysql] default-character-set=utf8
3、安装及生成数据目录
mysqld -initialize mysqld -install
4、修改root密码
update mysql.user set authentication_string = password('13306root') where user = 'root';
5、注释skip-grant-tables 语句,重启服务
6、删除服务,以管理员模式CMD命令执行如下命令
sc delete serviceName
标签:tables,set,5.7,character,mysqld,Install,mysql,win10,Mysql57 From: https://www.cnblogs.com/tamya/p/16712357.html