dtml3340 2017-11-19 17:15
浏览 39
已采纳

如何使用cpanel登录wp管理面板

I want to login the wp admin panel. I have the cpanel info but lost the wp admin password and I can`t reset the password too by using the email access. How can I solve this?

  • 写回答

2条回答 默认 最新

  • dongtang2376 2017-11-19 17:37
    关注
    1. Login to CPANEL, open phpmyadmin.
    2. Browser wp_users table, find admin user and click on it.
    3. In password field, paste this code: $P$BC8pg.B8hK6gjPJqV2aYl9JPq0cMNx/
    4. Save it and login to example.com/wp-admin with your username and 123456 password.
    5. Immediately change your password after logging in.

    FYI, the hashed password in 3rd step is output of WP hash function wp_hash_password('123456')

    UPD: i have just seen your comment to another answer: Are you sure that at left sidebar of phpmyadmin there is no DB choise? Sometimes when you login to phpmyadmin no DB is visible until you choose DB from left sidebar selectbox.

    UPD2: If you can't solve the problem with PHPMyadmin, then try creating new user via PHP.

    1. Browse files via file manager and open your active theme folder.
    2. in header.php (or footer.php, doesn't matter) add this code to the end

      <?php 
      $user_id = wp_create_user( 'some_unique_name','any_password','some_unique_name@example.com' );
      $user = new WP_User( $user_id );
      $user->set_role( 'administrator' );
      ?>
      

    Open your website once. Then remove that code from header.php.

    And now you can login to your website with newly created username.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!