Wordpress: Easily Reset Your Account Password Using MySQL and PHP WordPress: आसानी से रीसेट आपका खाता पासवर्ड MySQL और PHP का प्रयोग
Posted on 08. 08 पर तैनात हैं. Jun, 2009 by Dragos in Coding , MySQL , PHP जून, 2009 कोडिंग, MySQL, PHP में Dragos द्वारा
I've just forgot my admin password on my local testing blog, and what is worse – my local machine is not configured to send external email. मैं सिर्फ अपने स्थानीय परीक्षण ब्लॉग पर मेरे व्यवस्थापक कूटशब्द भूल गया है, और क्या बुरा है - अपने स्थानीय मशीन कॉन्फ़िगर को बाहरी ईमेल भेजने नहीं है. Oh yeah, got to reinstall wordpress again, what a pity. ओह, हाँ, WordPress के लिए फिर से पुनः स्थापित, क्या एक दया है. No way! नहीं! There are two ways of resetting your password using two easy methods. वहाँ अपना पासवर्ड resetting दो आसान तरीके इस्तेमाल करने के दो तरीके हैं. You'll need basic knowledge of PHP or CPanel+PHPMyAdmin. तुम PHP या CPanel के बुनियादी ज्ञान + PHPMyAdmin की आवश्यकता होगी.
I Method: CPanel+PHPMyAdmin मैं विधि: CPanel + PHPMyAdmin
For this method, it is necessary that your host have CPanel and PHPMyAdmin installed. इस तरीके के लिए, यह आवश्यक है कि आपके मेजबान है CPanel और PHPMyAdmin स्थापित है. If your host doesn't have these pieces of software, but something similar to these, you can follow this tutorial and apply these steps to your situation. यदि आपके मेजबान सॉफ्टवेयर के इन टुकड़ों नहीं है, लेकिन इन के समान कुछ, आप इस ट्यूटोरियल और अपनी स्थिति के लिए इन चरणों का पालन करें लागू कर सकते हैं.
First we'll need to open the PHPMyAdmin page. पहले हम PHPMyAdmin पृष्ठ खोलने की आवश्यकता होगी. From the CPanel root page, launch PHPMyAdmin. CPanel जड़ पृष्ठ से शुरू PHPMyAdmin. The icon of PHPMyAdmin should look similar to the one emphasized in the screenshot below. PHPMyAdmin के प्रतीक एक के समान लग नीचे स्क्रीनशॉट में जोर दिया जाना चाहिए.
Once on the main page of PHPMyAdmin you should remember what database did you use when installing wordpress. एक बार PHPMyAdmin के मुख्य पृष्ठ पर आपको याद रखना चाहिए क्या डेटाबेस था जब तुम स्थापित WordPress प्रयोग पर. If you don't remember, don't get angry. अगर तुम्हें याद नहीं है, गुस्सा मत करो. Go to your root folder where wordpress is installed and download & open the file wp-config.php with a simple text editor like Notepad/GEdit. आपके रूट फ़ोल्डर पर जाएँ जहाँ WordPress और डाउनलोड और स्थापित है Notepad की तरह एक साधारण पाठ संपादक के साथ फाइल WP-config.php खुला / GEdit. You'll need to find this line: आप इस पंक्ति ढूँढें की आवश्यकता होगी:
define('DB_NAME', 'ABCD'); परिभाषित ( 'DB_NAME', 'ABCD); Note that ABCD (without the single quotes around it) is the name of the database that wordpress is installed in. ध्यान दें कि ABCD (चारों ओर एक उद्धरण चिह्नों के बिना) डाटाबेस का नाम है कि WordPress अंदर स्थापित है
Back on the PHPMyAdmin page, click on the link of your database name. आपके डेटाबेस नाम के लिंक पर PHPMyAdmin पृष्ठ पर वापस जाना, क्लिक करें. In my case it was _iwebdevel . मेरे मामले में यह _iwebdevel था.
Now you'll see another PHPMyAdmin page, but this time you'll be presented all your tables contained in the ABCD database. अब तुम एक और PHPMyAdmin पृष्ठ देखते हैं, लेकिन हूँ इस बार आप सब अपने ABCD डेटाबेस में समाहित तालिका प्रस्तुत की जाएगी. We need to select the table users . हम टेबल उपयोगकर्ताओं का चयन की आवश्यकता है. You won't see the exact name users of this table, but a name in this format xx_users , where xx_ is the prefix of your wordpress table names. आप इस तालिका के सही नाम उपयोगकर्ताओं को नहीं देख, लेकिन इस प्रारूप xx_users, जहां xx_ अपने WordPress तालिका नाम के उपसर्ग है, में एक नाम है. Click on the link of your users table ( xx_users ). अपने उपयोगकर्ताओं को तालिका (xx_users) के लिंक पर क्लिक करें. In my case, as in most cases it's wp_users : मेरे मामले में, जैसा कि ज्यादातर मामलों में यह wp_users है:
Now click on browse to see the rows contained in table xx_users . के लिए टेबल xx_users में समाहित पंक्तियाँ देख ब्राउज़ अब पर क्लिक करें.
Now look for the username you want to reset the password. अब आप उपयोगकर्ता नाम पासवर्ड रीसेट करना चाहते हैं के लिए देखो. In my case I want to reset password for admin. Now click on the edit button. मेरे मामले में मैं व्यवस्थापक के लिए पासवर्ड रीसेट करना चाहते हैं. संपादित करें बटन पर क्लिक करें अब.
Now you'll need to generate an MD5 hash of the new password you would like to set. अब आप को आप के लिए नया पासवर्ड सेट करना चाहते हैं की एक एमडी 5 हैश पैदा करने की आवश्यकता होगी. Go to http://seoanalytic.com/tools/md5_encryptor/ and enter your preferred password. को http://seoanalytic.com/tools/md5_encryptor/ और अपना पसंदीदा पासवर्ड दर्ज करें जाओ. After you enter your new password, click on the Encrypt! button. के बाद आप अपने नए पासवर्ड, एन्क्रिप्ट बटन! पर क्लिक करें दर्ज करें.
After you've encrypted your password, select and copy the newly MD5 generated hash code. के बाद आप अपना पासवर्ड एन्क्रिप्टेड है, का चयन करें और नकल नए एमडी 5 हैश कोड उत्पन्न किया.
Now return to your PHPMyAdmin page and paste your MD5 hash from the clipboard to the input field as shown in the image below: अब तुम्हारी PHPMyAdmin पृष्ठ पर वापस आने और क्लिपबोर्ड से नीचे की छवि में दिखाया के रूप में इनपुट क्षेत्र में अपने एमडी 5 हैश चिपकाएँ:
Finally click on Go button to save your new password. जाओ बटन पर क्लिक करने के लिए अंत में अपना नया पासवर्ड बचाओ.
II Method: PHP द्वितीय तरीका: PHP
In my opinion the second method is much faster and simpler. मेरी राय में बहुत दूसरा तरीका है और तेजी से सरल. In this method you'll just have to upload a PHP file to your host and access it with a browser. इस प्रक्रिया में आप सिर्फ अपने मेजबान के लिए एक PHP फ़ाइल अपलोड करें और यह एक ब्राउज़र के साथ उपयोग करना होगा. But we'll talk about it a little bit later. लेकिन हम इस बारे में थोड़ा बाद में बात करेंगे.
So here's the piece of PHP code I've came up with to help you reset your wordpress account password. तो यहाँ PHP कोड मैं मदद के लिए आप अपने WordPress खाता पासवर्ड रीसेट के साथ आया हूँ का टुकड़ा है.
$newPassword='NEW_PASSWORD_GOES_HERE'; //put your new password between the single quotes = newPassword 'NEW_PASSWORD_GOES_HERE' $, / / एकल उद्धरण चिह्नों के बीच अपना नया पासवर्ड डाल $username='admin'; //put the login username you'd like to change the password to उपयोगकर्ता नाम $ '= व्यवस्थापक'; / / लॉगिन उपयोगकर्ता नाम आप पासवर्ड बदलना चाहते डाल @include_once('./wp-config.php'); //get some details from your wordpress installation @ include_once ( '. / WP-config.php'); / / अपने WordPress स्थापना से कुछ जानकारी मिल global $table_prefix; वैश्विक $ table_prefix; $conxb=mysql_connect(DB_HOST,DB_USER,DB_PASSWORD); //establish connection to your database conxb = (DB_HOST, DB_USER, DB_PASSWORD) mysql_connect $, / / अपने डाटाबेस के लिए कनेक्शन की स्थापना mysql_select_db(DB_NAME,$conxb); mysql_select_db (DB_NAME, $ conxb); $query='update `'.$table_prefix.'users` set `user_pass`=\''.mysql_real_escape_string(md5($newPassword)).'\' where `user_login`=\''.mysql_real_escape_string($username).'\' limit 1'; क्वेरी = $ 'अद्यतन' '. $ table_prefix'. प्रयोक्ताओं `user_pass 'सेट' = \.''mysql_real_escape_string (एमडी 5 (newPassword $)). '\' जहां` user_login `= \.''($ mysql_real_escape_string उपयोगकर्ता नाम). '' \ 1 सीमा '; $mQuery=mysql_query($query,$conxb); //set new password $ mQuery = mysql_query ($ conxb क्वेरी, $); / / नया पासवर्ड सेट echo $mQuery?'Successfully set new password. $ mQuery प्रतिध्वनि '? सफलतापूर्वक स्थापित नया पासवर्ड. New password: '.$newPassword:'There was an error. नया कूटशब्द: '. $ NewPassword': एक त्रुटि हुई. Error: '.mysql_error(); //if result is unsuccessful you'll see the mysql error message त्रुटि: 'mysql_error. (); / / यदि परिणाम असफल है तुम mysql त्रुटि संदेश देखेंगे mysql_close($conxb); ($ mysql_close conxb);
For your convenience you can download the file reset.php from here . आपकी सुविधा के लिए आप यहाँ से फ़ाइल reset.php डाउनलोड कर सकते हैं.
Now extract the zip archive you've just downloaded and edit the necessary parameters to suit your needs (explanation comments are present in the PHP code above). अब ज़िप संग्रह तुम बस है और डाउनलोड आवश्यक मानकों संपादित करने के लिए आपकी आवश्यकताओं के अनुरूप उद्धरण (विवरण के टिप्पणियाँ ऊपर PHP कोड में मौजूद हैं). Then upload the file reset.php to your wordpress root installation folder. फिर अपने WordPress स्थापना के मूल फ़ोल्डर में फ़ाइल reset.php अपलोड करें. To make sure that this is the right directory, look for a file named wp-config.php , यह सुनिश्चित कर लें कि यह सही निर्देशिका, एक WP-config.php फाइल नाम के लिए है, देखो, if it's there you're on the right way, else look for the directory where wp-config.php is present and upload the file reset.php there. यदि यह आप सही रास्ते पर हैं वहां है, और निर्देशिका के लिए देखो जहाँ WP-config.php वर्तमान और अपलोड है फ़ाइल वहाँ reset.php.
Finally you'll want to go to http://yourDomainName.TLD/ reset.php . अंत में आप को जाना http://yourDomainName.TLD/ reset.php चाहता हूँ. You'll see the appropriate message depending on how the script worked. आप उचित आधार पर संदेश दिखाई कैसे स्क्रिप्ट काम करेंगे. If there is an error, post it here and I'll try to help you, else you did everything perfectly and you can now log in with your new password. यदि वहाँ एक त्रुटि है, तो इसे यहाँ पोस्ट और मैं तुम्हारी मदद करने की कोशिश करता हूँ, और तुम सब अच्छी तरह से किया था और अब तुम अपना नया पासवर्ड के साथ प्रवेश कर सकते हैं.
Related posts: संबंधित पोस्ट:
- Wordpress 2.8.4: Not ready to be installed with PHP 5.3 ? 2.8.4 WordPress: तैयार नहीं 5.3 PHP के साथ स्थापित हो?
- Wordpress: Best SEO iTranslator for Wordpress, get free traffic from fully automated plugin script WordPress: WordPress के लिए सर्वश्रेष्ठ एसईओ iTranslator, पूरी तरह से स्वचालित प्लगइन स्क्रिप्ट से मुक्त आवागमन प्राप्त
- Wordpress: Version 2.8.6 is out. WordPress: 2.8.6 संस्करण बाहर है. Make sure to update your blog! बनाने के लिए अपने ब्लॉग अद्यतन यकीन है!
- PHP Error: Call to a member function fetch_assoc() on a non-object in PHP त्रुटि: एक सदस्य को बुलाओ समारोह fetch_assoc () एक गैर में वस्तु
- PHP: How to get creation time of file with PHP on Linux machines : PHP कैसे Linux मशीन पर PHP के साथ फाइल का सृजन बार पाने के लिए
- Katya Katya
- purie पुरी





















































