安装 设置环境变量 mysqld --initialize mysqld -install net start mysql 重置密码 net stop mysql mysqld --skip-grant-tables mysql -u root FLUSH PRIVILEGES; ALTER USER ‘root’@‘localhost’ IDENTIFIED BY ‘新密码’; exit net start mysql