Learn how to Make Money Online doing freelancing, Affiliate Marketing, Blogging and many more ...
Go4Expert
Go4Expert RSS Feed

Go Back   Programming and SEO Forum >  Go4Expert > Articles / Source Code > Database > MySQL / PostGRESQL

Discuss / Comment  Copy HTML to Clipboard  Copy BBCode to Clipboard  | More
 
Bookmarks Article Tools Search this Article Display Modes

Reset MySQL password for Windows Vista


On 7th October, 2007
Exclamation Reset MySQL password for Windows Vista

Show Printable Version Email this Page Subscription Add to Favorites Copy Reset MySQL password for Windows Vista link

Author

shabbir ( Go4Expert Founder )

Shabbir is a developer in the field of Applications, web as well as database designing and is devoted to the optimization and usability of the code. He maintains Programming forum and is a C++ addict.


All articles By shabbir

Recent Articles

Similar Articles

I just happen to make my life worse when I forgot my MySQL password on my Vista PC. I tried Googling out for forgot password for Windows Vista but happen to find everything from XP to Linux but not Vista and after going through each of them including the Linux one's as well I happen to reset the password so thought I would share my experience on how to reset MySQL password on Vista.
  • Log on to your system as Administrator.
  • Stop the MySQL server if it is running. For a server that is running as a Windows service, go to the Services manager:

    Start Menu -> Control Panel -> Administrative Tools -> Services

    Then find the MySQL service in the list, and stop it.

    If your server is not running as a service, you may need to use the Task Manager to force it to stop.
  • Start the Command Prompt ( cmd.exe ) as an Administrator by Right clicking the short cut and selecting Run as Administrator.
    You will be prompted and allow everything.
  • Now start the mysqld process with --skip-grant-tables option.
  • Keep that window open and open a new command prompt and browse to the location of MySQL and start MySQL with -u root option. It will not ask for any password and now execute the following SQL.
    Code: SQL
    UPDATE mysql.user SET Password=PASSWORD('password') WHERE User='root';
    Replace the ('password') with your password.
  • Now execute
    Code: SQL
    FLUSH PRIVILEGES;
  • Restart your PC and now it should allow you to access MySQL with your password
Old 10-10-2007, 11:36 AM   #2
Team Leader
 
pradeep's Avatar
 
Join Date: Apr 2005
Location: Kolkata, India
Posts: 1,470
Thanks: 0
Thanked 35 Times in 30 Posts
Rep Power: 7
pradeep will become famous soon enough
Send a message via Yahoo to pradeep

Re: Reset MySQL password for Windows Vista


Cool :-) It happened to me once, but I just reinstalled MySQL :P
__________________
Vote for the Most Entertaining Member of 2008

To err is human,to detect is divine!
pradeep is offline   Reply With Quote
Old 10-10-2007, 11:50 AM   #3
Go4Expert Founder
 
shabbir's Avatar
 
Join Date: Jul 2004
Location: On Earth
Posts: 12,516
Thanks: 53
Thanked 276 Times in 215 Posts
Rep Power: 10
shabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud of
Send a message via Yahoo to shabbir

Re: Reset MySQL password for Windows Vista


Quote:
Originally Posted by pradeep
Cool :-) It happened to me once, but I just reinstalled MySQL :P
shabbir is offline   Reply With Quote
Old 10-14-2007, 01:08 AM   #4
Light Poster
 
Join Date: Oct 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
darsh999 is an unknown quantity at this point

Re: Reset MySQL password for Windows Vista


Well my friend also facing the same situation but i have tried your technique too but the service manager is not opening in other servers !
So what should we do ?
__________________
Free Games
Bad Credit Repair
darsh999 is offline   Reply With Quote
Old 10-14-2007, 05:11 AM   #5
Go4Expert Founder
 
shabbir's Avatar
 
Join Date: Jul 2004
Location: On Earth
Posts: 12,516
Thanks: 53
Thanked 276 Times in 215 Posts
Rep Power: 10
shabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud of
Send a message via Yahoo to shabbir

Re: Reset MySQL password for Windows Vista


What do you mean by
Quote:
Originally Posted by darsh999
service manager is not opening in other servers !
shabbir is offline   Reply With Quote
Old 10-21-2007, 11:07 AM   #6
Light Poster
 
Join Date: Oct 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
verci is on a distinguished road

Re: Reset MySQL password for Windows Vista


i also reinstalled My SQL
verci is offline   Reply With Quote
Discuss / Comment  Copy HTML to Clipboard  Copy BBCode to Clipboard  | More


Currently Active Users Reading This Article: 1 (0 members and 1 guests)
 
Article Tools Search this Article
Search this Article:

Advanced Search
Display Modes
Bookmarks

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 Off
Pingbacks are Off
Refbacks are Off

Similar Threads / Articles
Thread Thread Starter Forum Replies Last Post
Basic BIOS password crack vishal sharma Ethical hacking 99 06-04-2010 06:23 AM
Steps To Secure Your MySQL Databases Mary MySQL / PostGRESQL 3 06-06-2009 09:30 PM
Vista vs Mac OS X Febian Windows 0 02-10-2007 06:19 PM
MySQL Storage Engines Janu MySQL / PostGRESQL 1 01-30-2007 10:22 AM
Choosing A Secure Password pradeep Ethical hacking 0 12-17-2005 01:25 PM

 

All times are GMT +5.5. The time now is 05:30 AM.