1. Stop MySQL server
# /usr/local/etc/rc.d/mysql-server stop
2. Start MySQL server with skip grant table mode
# mysqld_safe –skip-grant-tables &
# Starting mysqld daemon with databases from /var/db/mysql
3. Login as user root without password
# mysql -u root -pPrint This Post
GNOME Keyring is a daemon application designed to take care of the user's security credentials, such as user names and passwords. The sensitive data is encrypted and stored in a keyring file in the users home folder. The default keyring uses the login password for encryption, so users don't need to remember yet another password.
In order to reset the password for Keyring, you will have to delete the keyring files and then start from scratch entering all your password
# rm ~/.gnome2/keyrings/*.keyring
You should be greeted by this prompt when you try
The password cannot be recovered. The following procedure will allow you to change the root password.
Do the following:
- when the following boot message appears
Hit [ENTER] to boot immediately, or any other key for command prompt.
Booting [kernel] in 10 seconds...
hit a key, just pick one EXCEPT the ENTER key. You'll get a prompt like:
- type the following commands:
The boot process will now start, just wait until it asks you for a shell. Just hit
ENTER and 'sh' will be used as shell.
If you type 'mount' you will see that only your root partition ( / ) is mounted, you will have to mount 'usr' partition as well.
#mount /dev/ad0s1f /usr
Now you have to mount root partition as read-write enabled. Use the following command:
#mount -u /
The root partition should now be mounted read-write. Now you can use 'passwd' program to
change the root password.
That's all, reboot the system and login with the new password.Print This Post