初始化安装
Windows
- 官网下载zip包,解压
- 打开ini配置文件,设定存储位置

- 创建这个dir
- 配置环境变量 (将安装目录/bin 写入到环境变量的path中,方便命令行直接调用)
- 初始化
mysqld --initialize --console (会生成一个默认密码请记住)
mysqld --install
net start mysql (启动服务)
mysql -u root -p(进入mysql)
net stopmysql (结束服务)
- 修改密码
alter user 'root'@'localhost' identified by 'zhangpeng'; (修改默认密码)