Wednesday, July 9, 2008
MySQL Root Password Reset
Ok, I admit I am very forgetful. My wife would even say "very, very forgetful." So, besides not remembering my Joomla password (see related article). I forget other passwords like my database passwords.
For MySQL, my recipe for reseting my password is as follows:
As root,
Reset password field for 'root' Make sure everything is pushed to server Quit the MySQL client Stop the server which is running without permissions Restart the service properly
For MySQL, my recipe for reseting my password is as follows:
As root,
- Stop currenly running mysql server
# service mysqld stop - Restart service manually without using permissions
# mysqld_safe --skip-grant-tables & - Connect to service with mysql as root
# mysql -u root - Use mysql database
mysql> use mysql;mysql> update user set password=PASSWORD("your-new-password") where User='root';mysql> flush privileges;mysql> quit# kill -TERM %1# service mysqld restart
Subscribe to:
Post Comments (Atom)
About Me
- Jack Briner
- I'm a Texan who is living in South Carolina. I love living in Charleston with its history and proximity to the water. I'm married to a Lutheran pastor. We have two teenagers and two dogs.
Some of my sites
Flowertown Technology LLC
- Virus: Fix Your Virus
- PC Repair:Fix Ya PC
- Hosting:Holy City Websites
1 comments:
Jack,
Enjoyed finding your blog, although I don't understand computerese.
Sherry
www.blondesherry.blogspot.com
Post a Comment