1安装服务:mysqld --install
2初始化: mysqld --initialize --console
3开启服务:net start mysql
4关闭服务:net stop mysql
5登录mysql:mysql -u root -p
Enter PassWord:(密码)
6修改密码:alter user 'root'@'localhost' identified with mysql_native_password by ;(by 接着的是密码)