Reset mysql root password
The steps to reset mysql root password
- Stop mysqld service - In fedora this can be done as "sudo /sbin/service mysqld stop"
- Start mysqld with skip-grant-table option - "sudo /usr/bin/mysqld_safe --skip-grant-table &"
- Fire up mysql client as "mysql -u root mysql"
- Reset password - mysql> update user set password=password("secret") where user="root";
- Flush privileges - mysql>flush privileges;
- Shutdown mysqld - mysqladmin -u root -p shutdown. Please note that this will prompt for the newly created password
0 Comments:
Post a Comment
<< Home