This is a translated page. The original can be found here: http://iwebdevel.com/2009/06/08/wordpress-easily-reset-your-account-password-using-mysql-and-php/
UPDATES VIA RSS | Email GÜNCELLEME VIA RSS | E-posta Get updates via feedburner Get updates via twitter
Home / Coding / MySQL / PHP / Wordpress: Easily Reset Your… Ana Sayfa / Kodlama / MySQL / PHP / Wordpress: kolayca Sıfırlama ...

Wordpress: Easily Reset Your Account Password Using MySQL and PHP Wordpress: kolayca hesap şifrenizi MySQL ve PHP'nin sıfırla

Posted on 08. 08 olarak gönderildi. Jun, 2009 by Dragos in Coding , MySQL , PHP Haziran, 2009 Kodlama, MySQL, PHP ve Dragos tarafından

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. Ben sadece yerel testleri Blog Yönetici Şifremi unuttum sonra, ne kötüdür - Yerel makine harici e-posta göndermek için yapılandırılmamış. Oh yeah, got to reinstall wordpress again, what a pity. Oh evet, yine ne yazık wordpress yeniden yüklemek lazım. No way! No way! There are two ways of resetting your password using two easy methods. Iki kolay yöntemler kullanarak şifrenizi sıfırlamayı iki yolu vardır. You'll need basic knowledge of PHP or CPanel+PHPMyAdmin. PHP veya CPanel temel bilgi + PHPMyAdmin gerekir.

I Method: CPanel+PHPMyAdmin Ben Yöntem: CPanel + PHPMyAdmin

For this method, it is necessary that your host have CPanel and PHPMyAdmin installed. Bu yöntem için, bu sizin ana CPanel ve PHPMyAdmin yüklü olması gereklidir. 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. Ana bilgisayar yazılım bu parçalar yok, ama bir şey bu benzer, bu eğitim ve durum için şu adımları uygulayabilirsiniz takip edebilirsiniz.

First we'll need to open the PHPMyAdmin page. Önce PHPMyAdmin sayfa açmak gerekir. From the CPanel root page, launch PHPMyAdmin. CPanel kök sayfasından başlatmak PHPMyAdmin. The icon of PHPMyAdmin should look similar to the one emphasized in the screenshot below. PHPMyAdmin ve simgesi benzer aşağıdaki ekran görüntüsünde vurguladı bakmak gerekir.

PHPMyAdmin

PHPMyAdmin PHPMyAdmin

Once on the main page of PHPMyAdmin you should remember what database did you use when installing wordpress. Bir kez PHPMyAdmin size veritabanı siz yüklerken wordpress kullanmak yaptıklarını unutmamalısınız ana sayfada. If you don't remember, don't get angry. Eğer hatırlamıyorsanız, sinirlenmek yok. 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. Kök klasöre gidin nereye wordpress yüklü ve yükleme ve Not Defteri gibi basit bir metin editörü ile dosyayı wp-config.php açık / gedit. You'll need to find this line: Bu satırı bulmak gerekir:

 define('DB_NAME', 'ABCD'); define ( 'DB_NAME', 'ABCD'); 

Note that ABCD (without the single quotes around it) is the name of the database that wordpress is installed in. Bu ABCD çevresinde tek (tırnak işaretleri olmadan) veritabanına bu wordpress in yüklü adıdır Not

Back on the PHPMyAdmin page, click on the link of your database name. Veritabanı adının bağlantı Geri PHPMyAdmin sayfa tıklatın. In my case it was _iwebdevel . Benim durumumda _iwebdevel oldu.

Select your database

Select your database Seçin veritabanı

Now you'll see another PHPMyAdmin page, but this time you'll be presented all your tables contained in the ABCD database. Artık, ama başka bir PHPMyAdmin sayfası görürsünüz tüm masaları ABCD veritabanında bulunan sundu olacak bu sefer. We need to select the table users . Biz tablo kullanıcıları seçmeniz gerekir. 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. , Ancak bu tablonun isimde kullanıcılar görmez nerede xx_ WordPress tablo adları öneki bu formatı xx_users, bir isim. Click on the link of your users table ( xx_users ). Kullanıcılarınızın tablo (xx_users) ile bağlantısını tıklayın. In my case, as in most cases it's wp_users : Benim durumumda, bu wp_users en durumlarda olduğu gibi:

Select the users table

Select the users table Seçin kullanıcılar tablo

Now click on browse to see the rows contained in table xx_users . Satırlar tablo xx_users bulunan görmek için göz Şimdi tıklayınız.

Click on browse

Click on browse Tıklatın tarama

Now look for the username you want to reset the password. Şimdi kullanıcı adı, parola sıfırlama istiyorsanız arayın. In my case I want to reset password for admin. Now click on the edit button. Benim durumumda yönetici için parola sıfırlama istiyorum. Şimdi edit butonuna tıklayın.

Edit user's details

Edit user's details Değiştir kullanıcı bilgileri

Now you'll need to generate an MD5 hash of the new password you would like to set. Şimdi ayarlamak istediğiniz yeni şifreyi bir MD5 hash oluşturmak gerekir. Go to http://seoanalytic.com/tools/md5_encryptor/ and enter your preferred password. Tercih şifre girmek için http://seoanalytic.com/tools/md5_encryptor/ ve git. After you enter your new password, click on the Encrypt! button. Sonra Yeni şifrenizi, şifreleyin! Düğmesine tıklayın girin.

Encrypt your password

Encrypt your password Şifrelemek şifrenizi

After you've encrypted your password, select and copy the newly MD5 generated hash code. Sonra, şifrenizi şifreli sonra seçin ve yeni MD5 hash kodu oluşturulur kopyalayın.

Select and copy the MD5 hash

Select and copy the MD5 hash Seçin ve MD5 hash kopyalamak

Now return to your PHPMyAdmin page and paste your MD5 hash from the clipboard to the input field as shown in the image below: Şimdi PHPMyAdmin sayfaya geri dönün ve panoya giriş alanı için aşağıdaki resimde gösterildiği gibi sizin MD5 hash yapıştırın:

Paste MD5 hash in the specified input field

Paste MD5 hash in the specified input field Belirtilen giriş alanına yapıştırın MD5 hash

Finally click on Go button to save your new password. Go düğmesini Yeni şifrenizi kaydetmek için nihayet tıklayınız.

Save new password

Save new password Yeni şifreyi kaydet

II Method: PHP II Yöntem: PHP

In my opinion the second method is much faster and simpler. Bence çok daha hızlı ikinci yöntem ve daha basit. In this method you'll just have to upload a PHP file to your host and access it with a browser. Bu yöntemde sadece ana bilgisayar için bir PHP dosya yüklemek ve bir tarayıcı ile erişebilirsiniz. But we'll talk about it a little bit later. Fakat bunun hakkında biraz sonra konuşacağım.

So here's the piece of PHP code I've came up with to help you reset your wordpress account password. Yani burada sana wordpress hesabı parola sıfırlama yardım ile geldi I've PHP kod parçası's.

  $newPassword='NEW_PASSWORD_GOES_HERE'; //put your new password between the single quotes $ = 'NEW_PASSWORD_GOES_HERE' newpassword / / tek tırnak arasında yeni şifre koymak 
	 $username='admin'; //put the login username you'd like to change the password to $ username = 'admin'; / / size şifre değiştirmek isterseniz giriş kullanıcı adını koymak 
	 @include_once('./wp-config.php'); //get some details from your wordpress installation @ include_once ( '. / wp-config.php'); / / WordPress yükleme bazı detaylar olsun 
	 global $table_prefix; global $ table_prefix; 
	 $conxb=mysql_connect(DB_HOST,DB_USER,DB_PASSWORD); //establish connection to your database $ = (DB_HOST, DB_USER, DB_PASSWORD) mysql_connect conxb / / Veritabanı bağlantısı kurmak 
	 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'; $ query = ' `' güncelleyin. $ table_prefix. kullanıcılar` = \''. mysql_real_escape_string (md5 ($ newpassword)). '\' nerede `user_login` = `user_pass ayarlamak \''. mysql_real_escape_string ($ username). '\' limit 1 '; 
	 $mQuery=mysql_query($query,$conxb); //set new password $ mQuery = mysql_query ($ sorgu, $ conxb); / / yeni şifre koymak 
	 echo $mQuery?'Successfully set new password. mQuery echo $? 'Başarıyla yeni bir şifre ayarlayabilirsiniz. New password: '.$newPassword:'There was an error. Yeni şifre: '. $ Newpassword:' bir hata oldu. Error: '.mysql_error(); //if result is unsuccessful you'll see the mysql error message Hata: '. Mysql_error (); / / eğer sonuç başarısız olduğunu mysql hata iletisi görürsünüz 
	 mysql_close($conxb); mysql_close ($ conxb); 

For your convenience you can download the file reset.php from here . Sen buraya gelen dosya reset.php indirebilirsiniz kolaylık sağlamak için.

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). Şimdi sadece indirdiğiniz ve ihtiyaçlarınıza göre gerekli parametrelerini fermuar arşiv ekstraktı (açıklama yorum yukarıdaki PHP kodu olarak) bulunur. Then upload the file reset.php to your wordpress root installation folder. Sonra wordpress kurulum kök klasöre dosya reset.php yükleyin. To make sure that this is the right directory, look for a file named wp-config.php , Emin bu sağ dizine, bir dosyayı wp-config.php adlı bakmak ise, yapmak için 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. Eğer orada doğru yolda iseniz, başka dizin için nereye wp-config.php mevcut ve upload dosya reset.php orada bakalım.

Finally you'll want to go to http://yourDomainName.TLD/ reset.php . Son olarak size http://yourDomainName.TLD/ reset.php gitmek istersiniz. You'll see the appropriate message depending on how the script worked. Nasıl komut çalıştı uygun mesaj bağlı olarak görürsünüz. 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. Eğer bir hata varsa, burada posta ve sana yardım etmek için çalışacağım, başka mükemmel herşeyi yaptım ve şimdi, yeni şifrenizle giriş yapabilirsiniz.

Translate this post Translate bu yazı


Related posts: Ilgili posta:

  1. Wordpress 2.8.4: Not ready to be installed with PHP 5.3 ? Wordpress 2.8.4: Not Ready PHP 5,3 ile yüklenecek?
  2. Wordpress: Best SEO iTranslator for Wordpress, get free traffic from fully automated plugin script Wordpress: Wordpress için en iyi SEO iTranslator, tam otomatik eklenti script ücretsiz trafik olsun
  3. PHP: How to get creation time of file with PHP on Linux machines PHP: Linux makinalarda PHP ile dosya oluşturma süreleri elde etmek için
  4. PHP Error: Call to a member function fetch_assoc() on a non-object in PHP Hata: Üye için fetch_assoc olmayan () on-nesne fonksiyonu Arama
  5. Coding:How to fetch user profile data with SSI.php from a SMF forum database Kodlama: Nasıl Bir SMF forumunun veritabanından SSI.php ile kullanıcı profili veri almak için

  • Katya Katya
    :) :)
  • purie purie
    i have to try but why does still there error ? i denemek ancak neden hala orada hata? when i would to login.. ne zaman i .. giriş olur cann`t read the password .. `okumak şifre .. t Cann
    could you tell why does my code still error. Could you tell neden hala benim hata kodu yok. thank you teşekkür ederim
blog comments powered by Disqus Blog Yorumlar Disqus tarafından desteklenmektedir