How To Reset Admin Password in Magento

You can reset your Magento administrative password directly through the database related to your website application. You can access the database through cPanel -> phpMyAdmin tool.

Once you have opened the phpMyAdmin tool choose the corresponding database* from the dropdown menu on the left side. After that click on the SQL tab in order to be able to execute the following MySQL query:

 

 

where:

admin_user - this is database table from the Magento database. Bear in mind that this table may have a prefix such as "mg_" or different one. You will see the prefix of the database once you access the phpMyAdmin tool and select the database. The database tables will be listed and you will see if there is a database prefix or not. If there is a prefix you should replace the admin_user name with the correct database table name, i.e. mg_admin_user.

NEWPASSWORD - the desired password which you want to be set.

ADMINUSERNAME - your Magento administrative username, i.e. admin.

Execute the query and your new password will be set.

*If you are not sure exactly which database is related to your website you can find its name inside the following file:

~/app/etc/local.xml

You can open the file through cPanel -> File manager and search for the following line:

 

 

where user_magedatabase is the name of the database.

You need help with a shopping cart? hostlantern is specialized in eCommerce hosting and provides expert support for a large number of shopping carts. Check out our shopping cart hosting services!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to resolve the ‘Invalid package identifier provided’ error in Magento?

The Invalid package identifier provided error occurs when there is a problem with the...

How to alter product price in Magento

Altering the price of products in Magento is an easy task. All you need to do is: Login to...

Magento Contact Us Form

A contact us form is available by default in Magento. A link to it can generally be found in the...

Reindex Magento Data via SSH

The fastest way to reindex Magento data is manually via SSH. To reindex the Magento data...

How to add a module in Magento?

Additional functionality is added to Magento via separate modules called extensions. You can...

Powered by WHMCompleteSolution