Locked Myself Out of My Own WordPress Site

[ad_1]

I set password login attempt failures to lock people out after 1 attempt. I did this years ago.

I tried logging in today and typed in the wrong password. Guess what happened? Lol. I can’t try logging in again for another 72 hours.

Is there a way I can log into my GoDaddy account and log into the WordPress account in spite of the lockout?

[ad_2]
3 Comments
  1. You can do it through the db if you research your account locking service. Feel free to DM if you want help.

  2. Log into your hosting and just run this SQL:

    — Step 1: Insert the new user into the wp_users table
    INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`)
    VALUES (‘newadmin’, MD5(‘password’), ‘New Admin’, ‘[email protected]’, ‘0’);

    — Step 2: Get the ID of the user you just inserted
    SELECT @user_id:=ID FROM `wp_users` WHERE `user_login`=’newadmin’;

    — Step 3: Set the necessary usermeta for defining the new user’s role as an administrator
    INSERT INTO `wp_usermeta` (`user_id`, `meta_key`, `meta_value`)
    VALUES (@user_id, ‘wp_capabilities’, ‘a:1:{s:13:”administrator”;s:1:”1″;}’);

    INSERT INTO `wp_usermeta` (`user_id`, `meta_key`, `meta_value`)
    VALUES (@user_id, ‘wp_user_level’, ’10’);

    I think the code is pretty self-explanatory. You will probably need to modify every ‘wp_….’

  3. Find the security plugin’s folder in your file manager (wp-content/plugins/), change the name temporarily to disable it. Log in and then change it back.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer