简体   繁体   English

通过MySQL(phpmyadmin)恢复密码?

[英]Recover password via MySQL (phpmyadmin)?

I have a script which uses this shop codecanyon.net/item/universal-digital-shop/2987770, however I have recently changed my password via it's admin panel front end(usually based on eg yoursite.com/settings.php) and did a silly move not check Notepad really saved my new password before closing it. 我有一个使用此商店codecanyon.net/item/universal-digital-shop/2987770的脚本,但是最近我通过其管理面板前端(通常基于yoursite.com/settings.php)更改了密码,并执行了一个愚蠢的举动,不检查记事本在关闭之前确实保存了我的新密码。

Now I cannot login to my shop at all and need help folks. 现在,我根本无法登录我的商店,需要帮助的人。

I check in phpmyamdin and it seems like its a hashed password (is it md5?), and I just don't know how these work. 我签入phpmyamdin,似乎它是一个哈希密码(是md5吗?),我只是不知道它们是如何工作的。

I can post chunks of code and I have root access to mysql and phpmyadmin (Im more comfortable via phpmyadmin though and not a shell). 我可以发布大量代码,并且具有对mysql和phpmyadmin的root访问权限(虽然通过phpmyadmin而不是shell更加方便)。

I don't want to populate the whole DB again as this will loose my customer records. 我不想再次填充整个数据库,因为这会丢失我的客户记录。

Any ideas? 有任何想法吗?

The code below includes a password and an login ID. 下面的代码包括密码和登录ID。 But the password "346g3643832823h2h39236323f263827" and login ID "admin" are only used for example purposes and are not the actual live pieces of data in the database. 但是密码“ 346g3643832823h2h39236323f263827”和登录ID“ admin”仅用于示例目的,不是数据库中实际的实时数据。

<?php
/** DO NOT MODIFY OPTIONS BELOW. YOU CAN MODIFY THEM VIA ADMIN PANEL. */
define('VERSION', '2.50');
define('RECORDS_PER_PAGE', '50');
define('DEMO_MODE', false);
define('STATUS_DRAFT', 0);
define('STATUS_ACTIVE', 1);
define('STATUS_PENDING', 7);
define('ABSPATH', dirname(dirname(__FILE__)));

$options = array (
"version" => VERSION,
"owner_email" => "alerts@".str_replace("www.", "", $_SERVER["SERVER_NAME"]),
"from_name" => "Universal Digital Shop",
"from_email" => "noreply@".str_replace("www.", "", $_SERVER["SERVER_NAME"]),
"success_email_subject" => "Thank you for payment",
"success_email_body" => "Dear {payer_name},".PHP_EOL.PHP_EOL."Thank you for your purchasing \"{file_title}\". Please find download link below:".PHP_EOL."{download_link}".PHP_EOL."This link is valid {download_link_lifetime} days.".PHP_EOL.PHP_EOL."Thanks,".PHP_EOL."Universal Digital Shop",
"failed_email_subject" => "Payment was not completed",
"failed_email_body" => "Dear {payer_name},".PHP_EOL.PHP_EOL."Thank you for your payment. Unfortunately, it was not completed.".PHP_EOL."Payment status: {payment_status}.".PHP_EOL."We will review your payment shortly.".PHP_EOL.PHP_EOL."Thanks,".PHP_EOL."Universal Digital Shop",
"csv_separator" => ";",
"link_lifetime" => "2",
"xsendfile" => "off",
"enable_paypal" => "off",
"paypal_id" => "",
"paypal_sandbox" => "off",
"enable_payza" => "off",
"payza_id" => "",
"payza_sandbox" => "off",
"enable_interkassa" =>"off",
"interkassa_shop_id" => "",
"interkassa_currency" => "USD",
"interkassa_secret_key" => "",
"enable_authnet" => "off",
"authnet_login" => "",
"authnet_sandbox" => "off",
"authnet_key" => "",
"authnet_md5hash" => "",
"enable_skrill" => "off",
"skrill_id" => "",
"skrill_secret_word" => "",
"enable_egopay" => "off",
"egopay_store_id" => "",
"egopay_store_pass" => "",
"enable_perfect" => "off",
"perfect_account_id" => "",
"perfect_payee_name" => "",
"perfect_passphrase" => "",
"enable_bitpay" => "off",
"bitpay_key" => "",
"bitpay_speed" => "medium",
"enable_stripe" => "off",
"stripe_secret" => "",
"stripe_publishable" => "",
"login" => "admin",
"password" => "346g3643832823h2h39236323f263827"
);
$paypal_currency_list = array("USD", "AUD", "BRL", "CAD", "CHF", "CZK", "DKK", "EUR", "GBP",
"HKD", "HUF", "ILS", "JPY", "MXN", "MYR", "NOK", "NZD", "PHP", "PLN", "SEK", "SGD", "THB", "TRY",   

"TWD"););
$interkassa_currency_list = array("USD", "EUR", "GBP", "RUR", "UAH");
$egopay_currency_list = array("USD", "EUR");
$perfect_currency_list = array("USD", "EUR");
$bitpay_currency_list = array("USD", "EUR", "GBP", "AUD", "CAD", "CHF", "CNY", "RUB", "DKK", "HKD", "PLN", "SGD", "THB", "BTC");
$stripe_currency_list = array("USD", "CAD");
?>

Drop all tables in DB and repopulated them under same DB. 将所有表拖放到数据库中,并在同一数据库下重新填充它们。 Didn't need to worry too much about customer records anymore since Paypal held all my transaction records. 由于贝宝(Paypal)拥有我所有的交易记录,因此无需再为客户记录担心。

;) ;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM