Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Coppa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Come resettare la password di WordPress da phpMyAdmin

La reimposta della password di WordPress è di solito un processo semplice. Tuttavia, a volte i metodi standard non funzionano, lasciandovi bloccati fuori dal vostro sito web.

Alcuni dei nostri lettori hanno riscontrato questo problema e ci hanno chiesto un consiglio su quale sia il modo migliore per accedere ai loro account. Fortunatamente, potete sempre utilizzare lo strumento phpMyAdmin nel pannello di controllo del vostro account di hosting per reimpostare la password direttamente dal database di WordPress.

In questo articolo vi mostreremo come reimpostare facilmente la password di WordPress da phpMyAdmin. Spiegheremo ogni passaggio in modo chiaro, assicurandoci che anche chi non ha familiarità con i database possa seguirlo con sicurezza.

How to Reset a WordPress Password from phpMyAdmin

Perché resettare la password di WordPress da phpMyAdmin?

WordPress rende super facile il recupero di una password persa.

È sufficiente andare alla schermata di accesso del vostro sito web WordPress e cliccare sul link “Hai perso la password?”.

Click on 'Lost Your Password?'

Facendo clic sul link si accede alla pagina di reimpostazione della password. Una volta inserito il nome utente o l’indirizzo e-mail, WordPress invierà un link per la reimpostazione della password all’indirizzo e-mail associato.

Tuttavia, se non avete accesso a quell’indirizzo e-mail o se il vostro sito WordPress non riesce a inviare un’e-mail, non sarete in grado di reimpostare la password.

In questa situazione, è necessario reimpostare la password di WordPress direttamente nel database. Il modo più semplice per farlo è usare phpMyAdmin.

Detto questo, vediamo come resettare facilmente una password di WordPress da phpMyAdmin.

Come resettare la password di WordPress da phpMyAdmin

Subscribe to WPBeginner

Se non volete guardare il tutorial video, potete continuare a leggere la versione testuale qui sotto.

Per prima cosa, è necessario accedere al cruscotto cPanel del vostro account di hosting WordPress. Quindi, è necessario navigare nella sezione Database, dove è possibile fare clic sull’icona phpMyAdmin.

phpmyadmin panel in Bluehost

In questo modo si avvia l’applicazione phpMyAdmin.

Qui è necessario selezionare il database di WordPress dal riquadro di sinistra.

Select Your WordPress Database

Ora viene visualizzato l’elenco delle tabelle del database di WordPress.

È necessario cercare la tabella wp_users in questo elenco e fare clic sul link “Sfoglia” accanto ad essa.

Click the wp_users Browse Link

Nota: i nomi delle tabelle nel database di WordPress potrebbero avere un prefisso diverso da quello mostrato nell’immagine. La modifica dei prefissi delle tabelle può migliorare la sicurezza del vostro sito WordPress.

Ora si vedranno le righe della tabella degli utenti di WordPress. Fate clic sul pulsante di modifica accanto al nome utente di cui desiderate cambiare la password.

Click the Edit Button Next to the Username

PhpMyAdmin mostrerà un modulo con tutti i campi delle informazioni dell’utente.

È necessario cancellare il valore del campo user_pass e sostituirlo con la nuova password. Nella colonna Funzione, selezionare MD5 dal menu a discesa e fare clic sul pulsante Vai in fondo al modulo.

Select MD5 and Type Your New Password

La password verrà crittografata utilizzando l’hash MD5 e poi verrà memorizzata nel database.

Congratulazioni! Avete cambiato con successo la password di WordPress usando phpMyAdmin.

Alcuni di voi si chiederanno perché abbiamo scelto l’hash MD5 per criptare la password. In precedenza WordPress utilizzava l’hash MD5 per crittografare le password, ma da WordPress 2.5 utilizza tecnologie di crittografia più forti.

Tuttavia, WordPress riconosce ancora l’MD5 per garantire la compatibilità con il passato. Non appena si accede utilizzando una stringa di password memorizzata come hash MD5, WordPress la modificherà automaticamente per utilizzare gli algoritmi di crittografia più recenti.

Guide di esperti sulle password in WordPress

Ora che sapete come reimpostare una password di WordPress da phpMyAdmin, potreste voler vedere altri articoli relativi alle password di WordPress.

Speriamo che questo tutorial vi abbia aiutato a imparare come resettare una password di WordPress da phpMyAdmin. Potreste anche voler consultare la nostra guida definitiva alla sicurezza di WordPress, passo dopo passo, per mantenere il vostro sito WordPress al sicuro, oppure la nostra selezione di plugin indispensabili.

Se questo articolo vi è piaciuto, iscrivetevi al nostro canale YouTube per le esercitazioni video su WordPress. Potete trovarci anche su Twitter e Facebook.

Divulgazione: I nostri contenuti sono sostenuti dai lettori. Ciò significa che se cliccate su alcuni dei nostri link, potremmo guadagnare una commissione. Vedi come WPBeginner è finanziato , perché è importante e come puoi sostenerci. Ecco il nostro processo editoriale .

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Il kit di strumenti WordPress definitivo

Ottenete l'accesso gratuito al nostro kit di strumenti - una raccolta di prodotti e risorse relative a WordPress che ogni professionista dovrebbe avere!

Reader Interactions

287 commentiLascia una risposta

  1. Syed Balkhi

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Graham

    THANK YOU!!
    I was caught up on the md5 encryption of the pw field. This really save my tail. I was using a member profile update which stripped all the email fields. This in turn also stripped mine and poof! Everyone’s password was deleted.
    Seriously.
    So, thank you a lot.
    -Graham

  3. Karen Seet

    How do I find my “hosting provider” so I can get to phpmyadmin? I am new to this.

  4. Edwin Calimlim

    Great post, i wasn’t able to access my WP site for months already but thanks to this post, it is really a big help for me. Thank you.

  5. atif shahab

    Thanks alot. I was worried and stuck as well as i was unable to acess my WordPress dashboard for 2 hours. your recipe worked quickly. Thanks once again :)

  6. Niculina

    Thanks!! it worked! :):)

  7. alan

    What a fantastic email, new to C-panel but this tutorial was so clear I did it first time.

    Great job.

    Regards,

    Alan

  8. Pedro

    Did this now Jetpack gives me this error :

    Jetpack could not contact WordPress.com: register_http_request_failed. This usually means something is incorrectly configured on your web host.
    Operation timed out after 15000 milliseconds with 0 bytes received

    Any tips on this?

  9. Margie

    Thank you so much. The instructions were easy enough for even me to follow ;-)

  10. Carina

    I wish it worked for me……I followed the directions [easy] but when I went to put in the MD5 hash numbers, they were exactly the same as what was already in the field value. This tells me that my problem is then not entering my user name and password that is the problem, but something completely different. …..:(

  11. Thom Burlington

    Thank you, but ..
    while I can now reset the password with the MD5 code, derived from the new password I created, say, “abc” , and I finish and go back to my wordpress adimin signin:
    domain.org/wp-admin : username ; password

    for the password do I now use “abc” ?

    • Thom Burlington

      Yes the password is “abc” – very nice – between your post and the video you are very clear, thank you.

  12. Neal Kelshaw

    Not quite correct. If you choose MD5 as the function in the drop down menu, and then type the password in plain text it hashes the value to an MD5 value.

  13. tobi

    awesome post thanks a lot

  14. Jon O

    Just wanted to say a BIG thank you for this article! I was indeed hacked and had sought assistance from my hosting company and others.. but this article was the only straight forward approach that worked first time! Thanks so much!

  15. Tanya

    I spent hours trying to find a website to explain why I was logged onto my WP then 5 minutes later I couldn’t log onto it again.

    Thank you so much for the simple video. Problem solved in 5 minutes!

    You rock!

  16. Creina

    Thank you. For anyone that finds the video confusing just follow the written instructions.

  17. ashish

    thank you so much for this tutorial…

  18. Dairick

    Thank you for this turorial

  19. Parbat Devkota

    thank you work charm.

  20. Alexandra Jones

    I’m the dunce from Mars who can’t speak computer. I’ll start with this:

    “The best place to look is your wp-config.php file which is located in your root WordPress Directory.”

    OK–where is it and how do I get there? I can’t log into my site because it will not any accept any password resets. I tried Chris’s phone method and got in on my phone, but not on my laptop. and when I tried to post something on the phone, I got a message that I should install the latest Jetpack, but I had to log into WordPress again, and guess what–“Invalid username.”

    Is any of you who found these instructions such a breeze willing to speak to me on the phone? I’m writing from my wit’s end. That’s where I am. I would so appreciate it! Cheers!

    • WPBeginner Support

      wp-config.php file resides on your web server. You can login to your web hosting control panel, locate the file manager, and then locate wp-config.php file. Alternately, you can also edit it using an FTP client.

      Admin

  21. Zania

    Thank You! Thank You! Easy and worked like a charm!

  22. chrismj06

    You have saved my life. Bless u!

  23. Jill

    Thanks, you’re a lifesaver and this was easy to follow!

  24. Kristen

    You saved the day! Thank you!

  25. AMIT KUMAR

    Thank you ! I was simply trying to enter password. I never knew about the MD5 concept. Thanks again for a great tutorial.

  26. Dubb

    Awesome…you have saved the day once again my friend

  27. Skye

    THANK YOU!!!!! Great article!

  28. hendriyana

    Thanx !!! awesome.. helped for my problem….

  29. Jaykesh

    Amazing, thanks for quick help.

  30. luis

    Thanks a lot, I went into php admin and copy pasted the md5 password and i am in…..good job!

  31. Muniyappa

    Thank you very much..

  32. Tony Garcia

    A client’s developer passed away while on vacation of all things. You can only imagine what happened after that. Nobody knew anything of how their developer was doing things. Luckily I was able to locate where their databases were and got access to their PHPMyAdmin.

    Voila!!! I have both of their lost sites back up and running with access to the back-ends because of this post.

    Thank you!!!

  33. Carol Long

    Thank you! Life saver!

  34. Lori

    This saved me ENDLESS time. I’m not a tech novice but I am a novice at coding. These step by step instructions helped me regain access to my site! After losing access due to a “auto correct” error. (long story)

    Thank you again!

  35. christian gibson

    You say that Wordpress generates an MD5 encryption of your password? But I seem to remember seeing somewhere on Stackoverflow that this is no longer true. They said: “The WordPress password hasher implements the Portable PHP password hashing framework, which is used in Content Management Systems like WordPress and Drupal”.
    I know very little about encryption/decryption systems, but one thing does seem strange. In a Wordpress website database you can can see in the user table a field called ‘user-pass’ with contents like ‘$P$BlBAsz6jcvS3rLGDiE81PwtwbEazKg1’.
    All the hash values in this table begin with $P$B….. so what on earth is the point of including these leading 4 characters if they are all the same……?

  36. Samson

    Thank you very much. saved me valuable time

  37. Rod Salm

    As always, straight forward, very helpful tutorials. Right to the point and bang on accurate. Like this phpadmin tip for passwords.

    Thank you!

  38. Ben Glancy

    Or, if your admin account is the usual ID=1.

    Open functions.php and put this code in
    wp_set_password( “mypassword”, 1 );

    Reload the page.

    Uncomment code. Done.

  39. Diana

    Soooo helpful! Thank you!!!!

  40. raaga

    Thanks man. Very useful article.

  41. Matthew Harris

    Thanks for the tip, I couldn’t quite remember. Here is a return tip for you:

    You don’t need the external MD5 tool. Look on the screenshot there is a “Function” column with drop down boxes. On the user_pass field just select MD5 in the function column and type your new password in normal plain text in the input box next to it. When you save it phpMyAdmin will automatically md5 hash it for you.

    • Amir

      Great article. I found Matthew Harris’ tip simpler and tested it to work as well. Thanks!

      • Julian

        Mr. Harris approach worked like a charm! Thank you.

  42. Kevin B.

    Very helpful. As a non-technical user, I felt powerless when an errant designer wouldn’t respond to my requests for passwords; this page with instructions filled the bill perfectly!

    Many thanks,

    KB

  43. Gustavo

    Thanks for this great tip. I tried the “easiest” way above but couldn´t retrieve the automatic email because of some misterious server glitch.
    I don´t know beans of PhP, so this kind of article is very useful for us.

  44. Chris

    I found the easiest and fastest work around the “Sorry, that key does not appear to be valid” issue to reset your Wordpress password using your cell phone.
    1.) Just use your cell phone to access your password reset email that was sent to you.
    2.) Click on the link in the email. The link will automatically open the site where you can input your new password.
    3.) Follow the prompts to enter your new password.
    4.) Save your new password
    5.) You should now be able to access your WordPress website with your new password from any computer, business as usual.

    I hope this helps everybody!

Lascia una risposta

Grazie per aver scelto di lasciare un commento. Tenga presente che tutti i commenti sono moderati in base alle nostre politica dei commenti e il suo indirizzo e-mail NON sarà pubblicato. Si prega di NON utilizzare parole chiave nel campo del nome. Avremo una conversazione personale e significativa.