Webmaster Forum
Go Back   Webmaster Forums UK SEO SEM Webmaster Community Forum > Web Design and Website Development > Programming > MySQL Forums
Register FAQ Members List Downloads Calendar Search Today's Posts Mark Forums Read Webmaster Resources Webmaster Blogs

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-01-2008, 11:07 AM
dman_2007
Guest
 
Posts: n/a
iTrader: / %
Default lost your mysql root password?

If you ever forgot the password of the root user of mysql install, then don't worry. You can easily reset it to something else (though you won't be able to revover the old password). Here's how you can do it :

1) Shut down the mysql server process
2) Restart the server process with these two additional options : --skip-grant-tables and --skip-networking
3) first option will bypass the loading of grant tables, hence anyone will be able to access any database without any need to provide any password. Second option, will turn off networking feature. This will ensure that only those who have access to the system will be able connect to the server.
4) Connect to the server and use UPDATE SQL command to update root password by updating password field in user table in mysql database.
5) log out of the server and then restart it without those two options and you'll be able to log in as root user by using the new password.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this Post!
Reply With Quote
  #2 (permalink)  
Old 04-01-2008, 11:32 AM
Resonate's Avatar
Internet Marketing Admin
 
Join Date: Sep 2007
Location: {{ A Remote Server }}
Posts: 615
iTrader: 0 / 0%
Resonate is a jewel in the roughResonate is a jewel in the roughResonate is a jewel in the rough
Send a message via ICQ to Resonate Send a message via AIM to Resonate Send a message via MSN to Resonate Send a message via Yahoo to Resonate Send a message via Skype™ to Resonate
Default

Excellent dman, this will be useful for a lot of new sql users, i remember the first time i did this & it was hard to find a simple resource to tell me how to regain access
__________________
Currently taking my LEVEL 3 ADVANCED ELECTROTECHNICAL Certification exams. My activity may be limited for some time but i will be around soon.

W3Seo Search engine optimization & Web development forums * Seo Consultancy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this Post!
Reply With Quote
  #3 (permalink)  
Old 04-01-2008, 11:50 AM
gkd_uk's Avatar
Super Moderator
 
Join Date: Mar 2007
Location: zeshaan.info
Posts: 3,539
iTrader: 2 / 100%
gkd_uk has much to be proud ofgkd_uk has much to be proud ofgkd_uk has much to be proud ofgkd_uk has much to be proud ofgkd_uk has much to be proud ofgkd_uk has much to be proud ofgkd_uk has much to be proud ofgkd_uk has much to be proud ofgkd_uk has much to be proud of
Default

Great post - rep added
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this Post!
Reply With Quote
  #4 (permalink)  
Old 04-01-2008, 01:43 PM
dman_2007
Guest
 
Posts: n/a
iTrader: / %
Default

Thank you for your kind comments and the rep.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this Post!
Reply With Quote
Reply


Useful Resources & Sites
Search Engine Marketing Company
UK Web Hosting
Build One Way Links
 
 
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:58 PM.

UK Webmaster World Forums - Internet marketing, web development, domain names, SEO contest and discussuons.
Subscribe to our feeds   Subscribe to our feeds

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0