[SQL] MySQL下载安装
- 下载:
- 官网:https://dev.mysql.com/downloads/installer/
- 镜像:https://mirrors.tuna.tsinghua.edu.cn/mysql/downloads/MySQL-8.0/ 选择 mysql-8.x.xx-winx64.msi
- 安装教程:https://www.runoob.com/mysql/mysql-install.html (看windows的)
- 记住初始化默认密码:如YYf:rTeiD8np -> 233noecc
- 启动服务:net start mysql
- 启动MySQL:.\mysql -u root -p
- 修改密码:alter user 'root'@'localhost' identified by '233noecc';
- 退出:quit;
- 关闭服务:net stop mysql