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.
Recent Articles
- Setting-Up a Relational Database in MySQL, Started by hurricanesoftwares in MySQL / PostGRESQL
- Replace Statement in MySQL, Started by pradeep in MySQL / PostGRESQL
- Why Prepare SQL Queries??, Started by pradeep in MySQL / PostGRESQL
- Database Transaction Auditing With MySQL and PostgreSQL Using Triggers, Started by pete_bisby in MySQL / PostGRESQL
- Foreign Keys in MySQL, Started by pradeep in MySQL / PostGRESQL
Similar Articles
- Basic BIOS password crack, Started by vishal sharma in Ethical hacking
- Steps To Secure Your MySQL Databases, Started by Mary in MySQL / PostGRESQL
- Vista vs Mac OS X, Started by Febian in Windows
- MySQL Storage Engines, Started by Janu in MySQL / PostGRESQL
- 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.
Replace the ('password') with your password.Code: SQLUPDATE mysql.user SET Password=PASSWORD('password') WHERE User='root'; - Now execute Code: SQLFLUSH PRIVILEGES;
- Restart your PC and now it should allow you to access MySQL with your password

















Linear Mode

