1. 停掉mysql
2. mysqld-safe --skip-grant-table&
3. mysql
4. update user set password=password('root') where user='root';
5. flush privileges;
1. 停掉mysql
2. mysqld-safe --skip-grant-table&
3. mysql
4. update user set password=password('root') where user='root';
5. flush privileges;