1. mysqld --skip-grant-tables
2. cmd mysql
3. use mysql;
4. update user set password=password("123") where user="root";
5. flush privileges;
1. mysqld --skip-grant-tables
2. cmd mysql
3. use mysql;
4. update user set password=password("123") where user="root";
5. flush privileges;