解压后的目录执行命令,安装
- 解压后的目录/bin mysqld -install
初始化
- mysqld --initialize --user=root --console
会有输出一下信息:有个临时密码
A temporary password is generated for root@localhost: 4IfH4*eywsg=
启动
- net start mysql
用临时密码进去改密码就行了
- mysql -u root -p4IfH4*eywsg=
- ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的密码';