Kategorie: Linux

Conversion Magento admin password from the database

Below a very simple way to change your password to the Admin panel in the script Magento

Phpmyadmin log in to our database.

If you are not sure, database that is associated with your site, You can find her name in the database configuration file Magento:

Magento 1.9 and older:

app/etc/local.xml

Magento 2:

app/etc/env.php

You can open the configuration file using FTP and look line dbname, where you will find the database name.

Select the appropriate database from the drop-down menu on the left. Then click on the SQL tab, to be able to perform the following query MySQL. remember, that question will vary depending on your version of Magento:

Magento 1.9 and older:

UPDATE U admin_user SET `password` = md5('YOUR_NEW_PASSWORD'), is_active = 1 WHERE `username` = 'YOUR_ADMIN_USERNAME';

Magento 2:

UPDATE admin_user SET `password` = CONCAT(SHA2('xxxxxxxxYOUR_NEW_PASSWORD', 256), ':xxxxxxxx:1') WHERE `username` = 'YOUR_ADMIN_USERNAME';

make sure, You are replacing the following variables:
admin_user – jest to tabela bazy danych z bazy danych Magento. remember, że ta tabela może mieć prefiks taki jak “mg_” lub inny. After gaining access to the phpMyAdmin tool and selecting the database you see the Magento database prefix (if). If there is a prefix, should be replaced with a user name admin_user the correct name of the database table, for example,. mg_admin_user.

YOUR_NEW_PASSWORD – żądane hasło, you want to set. A sequence of characters is a salt cryptographic xx..xx. It can be anything, what you need, but make sure, that you use the same value in both parts of a SQL statement.

YOUR_ADMIN_USERNAME – Twoja nazwa użytkownika administracyjnego Magento, ie. Administrator.

xxxxxxxx – tajny klucz wygenerowany dla twojej instalacji Magento. The key can be obtained from the application configuration file listed at the beginning of this article.

Make inquiry, and your new password will be set Magento.

Linux

Udostępnij
Opublikowane przez
Linux

Recent posts

KeePass2 2.52 w Ubuntu 22.04

The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń

2 years temu

Installing Master PDF editor in Ubuntu 22.04

Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji

2 years temu

iotop - memory monitoring

Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w

2 years temu

Run multiple commands in one cron job

You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania

2 years temu

Changing the exif data of a photo in the Linux terminal

Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.

2 years temu

Installing Rocket.Chat Server on Rocky Linux 8

The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy

2 years temu