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

Cómo restablecer una contraseña de WordPress desde phpMyAdmin

Nota editorial: Ganamos una comisión de los enlaces de socios en WPBeginner. Las comisiones no afectan a las opiniones o evaluaciones de nuestros editores. Más información sobre Proceso editorial.

¿Quieres restablecer tu contraseña de WordPress usando phpMyAdmin?

Si no se ha podido restablecer la contraseña de WordPress, existe una forma de hacerlo directamente en la base de datos de WordPress mediante phpMyAdmin.

En este artículo, le mostraremos cómo restablecer fácilmente una contraseña de WordPress desde phpMyAdmin.

How to Reset a WordPress Password from phpMyAdmin

¿Por qué restablecer una contraseña de WordPress desde phpMyAdmin?

WordPress hace que sea muy fácil recuperar una contraseña perdida.

Sólo tiene que ir a la pantalla de acceso de su sitio web de WordPress y hacer clic en el enlace “¿Ha perdido su contraseña?”.

Click on 'Lost Your Password?'

Al hacer clic en el enlace, accederá a la página de restablecimiento de contraseña. Una vez que introduzca su nombre de usuario o dirección de correo electrónico, WordPress le enviará un enlace para restablecer la contraseña a la dirección de correo electrónico asociada.

Sin embargo, si no tiene acceso a esa dirección de correo electrónico o su sitio de WordPress no envía ningún correo electrónico, no podrá restablecer su contraseña.

En tal situación, tendrá que restablecer su contraseña de WordPress directamente en la base de datos. La forma más sencilla de hacerlo es utilizando phpMyAdmin.

Dicho esto, veamos cómo restablecer fácilmente una contraseña de WordPress desde phpMyAdmin.

Cómo restablecer una contraseña de WordPress desde phpMyAdmin

Subscribe to WPBeginner

Si no desea ver el tutorial en vídeo, puede seguir leyendo la versión en texto que figura a continuación.

En primer lugar, debe acceder al Escritorio de WordPress de su cuenta de alojamiento. A continuación, debe navegar hasta la sección Bases de datos, donde puede hacer clic en el icono phpMyAdmin.

phpmyadmin panel in Bluehost

Esto iniciará la aplicación phpMyAdmin.

Aquí debe seleccionar su base de datos de WordPress en el panel izquierdo.

Select Your WordPress Database

Ahora verá el anuncio / catálogo / ficha en su base de datos de WordPress.

Debe buscar la tabla wp_users en esta lista y hacer clic en el enlace “Examinar” situado a su lado.

Click the wp_users Browse Link

Nota: Los nombres de tabla en su base de datos de WordPress pueden tener un prefijo diferente al que mostramos en nuestra captura de pantalla. Cambiar los prefijos de las tablas puede mejorar la seguridad de tu sitio WordPress.

Ahora verá las filas de su tabla de usuarios de WordPress. Siga adelante y haga clic en el botón de edición al lado del nombre de usuario cuya contraseña desea cambiar.

Click the Edit Button Next to the Username

PhpMyAdmin le mostrará un formulario con todos los campos de información del usuario.

Deberá borrar el valor del campo user_pass y sustituirlo por su nueva contraseña. En la columna de función, seleccione MD5 en el menú desplegable y, a continuación, haga clic en el botón Ir situado en la parte inferior del formulario.

Select MD5 and Type Your New Password

Su contraseña se cifrará utilizando el hash MD5 y luego se almacenará en la base de datos.

¡Enhorabuena! Has cambiado correctamente tu contraseña de WordPress usando phpMyAdmin.

Algunos de ustedes se preguntarán por qué hemos seleccionado el hash MD5 para cifrar la contraseña. Anteriormente WordPress utilizaba el hash MD5 para cifrar las contraseñas, pero desde WordPress 2.5 utiliza tecnologías de cifrado más potentes.

Sin embargo, WordPress sigue reconociendo MD5 para proporcionar compatibilidad con versiones anteriores. Tan pronto como acceda usando una cadena de contraseña almacenada como un hash MD5, WordPress la cambiará automáticamente para usar los algoritmos de cifrado más recientes.

Guías de expertos sobre contraseñas en WordPress

Ahora que ya sabes cómo restablecer una contraseña de WordPress desde phpMyAdmin, quizás quieras ver otros artículos relacionados con las contraseñas en WordPress.

Esperamos que este tutorial te haya ayudado a aprender cómo restablecer una contraseña de WordPress desde phpMyAdmin. Puede que también quieras ver nuestra guía de seguridad de WordPress paso a paso para mantener tu sitio WordPress seguro o nuestra selección de plugins imprescindibles.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Descargo: Nuestro contenido está apoyado por los lectores. Esto significa que si hace clic en algunos de nuestros enlaces, podemos ganar una comisión. Vea cómo se financia WPBeginner , por qué es importante, y cómo puede apoyarnos. Aquí está nuestro proceso editorial .

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.

El último kit de herramientas de WordPress

Obtenga acceso GRATUITO a nuestro kit de herramientas - una colección de productos y recursos relacionados con WordPress que todo profesional debería tener!

Reader Interactions

287 comentariosDeja una respuesta

  1. Syed Balkhi says

    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. Prescott Chartier says

    I’ve tried this several times and each time it still says the password is incorrect, and yes I have the correct database.

    • WPBeginner Support says

      The next thing to check would be that the MD5 action is properly going through in your database or if it gives you an error.

      Administrador

  3. Moinuddin Waheed says

    Changing password by clicking lost or forget password and then getting an email is an easy step.
    Using phpmyadmin for changing password is a bit developer oriented.
    I have used while developing sites from local host by flywheel but I fear doing for the live server.
    Do we have the same encryption after changing password as it was before or it is simply the hard coded text that we typed in as password?

    • WPBeginner Support says

      If you are using the phpMyAdmin method you would want to put in your password normally and in the function dropdown you would set it to MD5 to have the password be the text you placed in the field.

      Administrador

  4. Branson says

    Hi,

    I have just tried to reset my password with the MD5 method you suggested, but it didn’t work. I tried like 5 times and every time I tried to login into my website it would say incorrect password. What’s wrong?

    Thanks in advance.

    • WPBeginner Support says

      If you have more than one WordPress installation on your hosting provider, ensure you are editing the correct database and ensure you apply the changes in the database for the most common reasons.

      Administrador

  5. Stem says

    Hello,

    I tried to reset my password using this method, but it’s showing this error “Error: The username user is not registered on this site. If you are unsure of your username, try your email address instead.”

    • WPBeginner Support says

      That would normally mean your username is not on the site, you would want to ensure are logging in with the correct username or email address. The steps in this article should not affect your username or email.

      Administrador

  6. blossominglotus says

    This method is not working for me. I even tried updating the password using raw SQL. It does change the password but I still cannot log in with the new password.

    • WPBeginner Support says

      If this method is not working then we would recommend reaching out to your hosting provider and/or checking that you are editing the correct database on your hosting provider if you have more than one database.

      Administrador

  7. Guillaume Frasca says

    Hi, I followed your advice, but when I click on Go, I have the #1142 error message “UPDATE command denied to user ‘scienceisa431’@’@XX.XX.XX.X’ for table ‘mod597_users’
    Is there a way around this?

    • WPBeginner Support says

      Your user may not have proper access on your hosting environment, if you reach out to your hosting provider they should be able to assist!

      Administrador

  8. NS says

    Thanks! The “MD5” encryption step is what I was missing when I tried to reset. Then I came across your article and tried it and it worked! You just saved me hours and hours of time and a potentially angry client.

    • WPBeginner Support says

      If your changes are not staying, you would likely want to check with your hosting provider to ensure you’re not running into a security tool blocking your change. Another common issue would be if you have a staging site or an old database for a previous site so you would want to ensure you are changing the information for your correct site.

      Administrador

    • WPBeginner Support says

      It would depend on what part didn’t work. The most common reasons would be if you did not save your changes or did not convert to MD5

      Administrador

  9. John says

    Perfect – saved me from a big issue.. thanks! Now, about getting those WP system emails working again…………….!

    • WPBeginner Support says

      You may want to ensure you set the password to MD5 and that you are editing the correct user file if you have multiple WordPress sites or users

      Administrador

  10. Taylor says

    I have followed these steps and the password was generated however, whenever I put in the password it still says it is incorrect.

    Any help you can provide ?

    • WPBeginner Support says

      You would want to double-check that you encrypted the password using MD5 as the most common reason

      Administrador

  11. Hazel Pan says

    Thank you for this noob-friendly guide! I was able to understand how to fix my issue right away. It also helped that I had awesome support from my hosting provider, Namecheap.

  12. Umar Gondal says

    May Allah bless you with eman. This article helped me to reset password of my website. Very informative article

  13. Ajit Kumar says

    The email could not be sent. Possible reason: your host may have disabled the mail() function.

    error shows

    • WPBeginner Support says

      If you have that error on your site, you would want to start by reaching out to your hosting provider.

      Administrador

  14. George says

    Great article, I can see how this “can” work, but didn’t work for us either!!!!! We have access to the registrar, access to the domain and web hosting, full access to file manager, phpMyAdmin and the Installatron.

    Followed your instructions to the T, didn’t work. We even changed the email in the email field. Its like the script didn’t update.

    • WPBeginner Support says

      If this method didn’t work then you likely need to reach out to your hosting provider and your host should be able to assist in fixing this issue.

      Administrador

  15. Van says

    This didn’t work for me. I’ve tried changing my password via my profile in WP Admin and using this technique; neither worked. WordPress 5 bug?

    • WPBeginner Support says

      You may want to clear your cache on your site and browser and check with your hosting provider that they are not preventing changes to your site’s database.

      Administrador

    • WPBeginner Support says

      If this method does not work, if you reach out to your hosting provider they should be able to help you log back into your site.

      Administrador

Deja tu comentario

Gracias por elegir dejar un comentario. Tenga en cuenta que todos los comentarios son moderados de acuerdo con nuestros política de comentarios, y su dirección de correo electrónico NO será publicada. Por favor, NO utilice palabras clave en el campo de nombre. Tengamos una conversación personal y significativa.