将wp_user中的user_pass更改为MD5

时间:2017-09-21 02:57:56

标签: android wordpress

我可以知道如何将wordp中的user_pass更改为用于wordpress到MD5,因为我的android应用程序用户密码我在php中写为MD5,现在我的应用程序无法使用wordpress中的用户数据登录因为wp中的user_pass - 用户从$ P $ B开始。我希望有人帮助我,谢谢

1 个答案:

答案 0 :(得分:2)

来自Change Reset WordPress password from MySQL/PHPMyAdmin

(n.b:我只测试了第一种方法)

方法#1 - 通过phpMyAdmin表编辑的漫长道路

此方法涉及编辑和更新 wp_users 表值以重置丢失的WordPress密码。这种方法的时间稍长,但也很容易在不知道技术的情况下遵循。

  1. 前往phpMyAdmin

  2. 点击您的WordPress数据库。

  3. enter image description here

    1. 导航至并单击表wp_users。
    2. enter image description here

      1. 使用您的WordPress用户名编辑行。
      2. enter image description here

        1. 现在,在user_pass字段中,将功能更改为MD5并在“值”部分输入新密码(参见下面的屏幕截图)。
        2. enter image description here

          1. 单击底部的“Go”或类似选项以更新表值。
          2. enter image description here

            方法#2 - 通过MySQL的简短方法

            此方法实现直接SQL查询执行以更新 wp_users 表值以重置我们被黑客入侵的WordPress密码。

            1. 按照上述方法的前3个步骤进行操作。

            2. 转到phpMyAdmin中的SQL或MySQL部分。

            3. enter image description here

              1. 现在,输入以下给定的查询:

                 UPDATE `wp_users` SET `user_pass`= MD5('yourpassword') WHERE `user_login`='yourusername';
                

                将您的新密码替换为您的密码,并将您的用户名替换为您的WordPress用户名。

              2. enter image description here

                1. 点击底部的“Go”或类似选项以执行查询。