MySQL5.7绿色版安装

以下步骤,经过本人在windows环境下验证

1. MySQL压缩包下载:官网下载地址 (需Oracle账号)
2. 解压,初始化:binmsyqld --defaults-file=my.ini --initialize --console (my.ini为自己定制的配置文件,也可以没有)
3. 启动:binmysql -P8499 -uroot -p随机密码 (此随机密码是2中控制台打印的密码)
4. 修改root密码:ALTER USER 'root'@'localhost' IDENTIFIED BY '123456;

参考:https://dev.mysql.com/doc/refman/5.7/en/windows-install-archive.html

原文地址:https://www.cnblogs.com/roostinghawk/p/13666746.html