Magento Tips: Useful FAQ Tips on Magento ® 2


In actual practice, the reasons for problems with your online store may be different. Sometimes even the technicians cannot determine the cause of the problem immediately. But there are Magento tips that are useful for you to know. In this article, we will review some questions that are often reported to our support team.

Magento Tips List

How to change the domain name from an old to a new one

Whenever you switch to selling some new goods you might need to update your domain name to a more suitable fit. It is not difficult to change the domain in Magento ® 2 as is the case with Magento ® 1. But before you assign the new domain to your Magento ® 2 you should make sure that your new domain is properly working and accurately configured. To change the domain name, follow the instruction below for best results with these Magento tips.

First of all, open the admin panel of your Magento ® 2 store.

Then go to Stores > Configuration tab.

After entering the configuration panel navigate to the ‘General’ section and open up the ‘Web’ tab.

In the ‘Web’ tab you will see the Base URL option. Click on the option to expand it. There you have to change both secure and unsecure Base URLs. For example, if your current working domain is and you want to change it to, then you will replace in your unsecure Base URL field with, and for secure Base URL you will make the change using

After doing all these steps you should save your changes by hitting the ‘save config’ button.

After changing the domain and saving the changes you should clear the cache.

For that, you should go to the installation directory of your Magento ® and delete the /var/cache folder. The cache can be cleared through the admin panel, or using the console interface of Magento ® 2: php bin/magento cache:clean or php bin/magento cache:flush (These commands should run from the installation directory of Magento ®).

How to restore the admin password for your Magento ® 2 store

There are two methods for doing that. The first and the easiest way is to retrieve your password by email.

For that, you should press the ‘Forgot your password’ button on the login page.

Then you should enter the email address in the corresponding box - the one that is associated with your Magento ® account.

After entering the email, you should click the ‘Retrieve Password’ button, and the password will be sent to your email address.

The other approach is changing the password through Databases > phpMyAdmin section in your hosting control panel (cPanel, Plesk, Portal etc. – whichever your hosting provider is offering).

First, you must log in to your control panel using the corresponding access data provided by your host.

Once you have logged in, go to the section for ‘MySQL Databases’ and open ‘phpMyAdmin’ application.

In phpMyAdmin interface you’ll need to find the SQL query tab and use one of the following commands in order to change your password, depending on your server settings:

  • UPDATE admin_user SET password = CONCAT(SHA2('xxxxxxxxNewPassword', 256), ':xxxxxxxx:1') WHERE username = 'admin'; - where you will replace “New Password” with the password you want to set and replace the xxxxxxxx sequence on both sides by random characters, but the random sequence of characters on both sides must be the same;
  • or UPDATE admin_user SET password=CONCAT(MD5('qXNew Password'), ':qX') WHERE username='admin'; - where you will replace “New Password” with the password you want to set.

We also recommend studying this document. This is the list of settings that should be considered and updated on the initial installation of Magento ®.

The GoMage team is ready to assist in whatever way may be necessary with your Magento platform.  If you have questions, contact us by e-mail at