{"id":4660,"date":"2021-09-30T04:00:00","date_gmt":"2021-09-30T04:00:00","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=4660"},"modified":"2026-02-16T04:48:32","modified_gmt":"2026-02-16T04:48:32","slug":"fix-locked-out-of-wordpress-admin-issue","status":"publish","type":"post","link":"\/tutorials\/fix-locked-out-of-wordpress-admin-issue","title":{"rendered":"Locked out of WordPress? here\u2019s what you need to do"},"content":{"rendered":"<p>Getting locked out of your WordPress admin account can be frustrating, especially if it occurs suddenly, and you don&rsquo;t know why it happened nor how to fix it.<\/p><p>It&rsquo;s easy to overcome this situation if you have a webmaster or developer on your team. If you manage your WordPress website by yourself, you&rsquo;ve come to the right place.<\/p><p>This article will help you understand the various reasons that may cause you to be locked out of WordPress. We&rsquo;ll go through nine possible causes and their solutions so you can regain access to the site.<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Mega-WordPress-Cheat-EN.pdf\" target=\"_blank\" rel=\"noopener\">Download all-in-one WordPress cheat sheet<\/a><\/p><p>\n\n\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-what-to-do-before-fixing-the-issue\">What to Do Before Fixing the Issue?<\/h2><p>Before proceeding to fix the issue, there are three tasks you need to do:<\/p><ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.hostinger.com\/en\/articles\/3989447-how-to-restore-wordpress-website-from-backups\" target=\"_blank\" rel=\"noopener\"><strong>Restore a backup<\/strong><\/a> &ndash; this may help if you&rsquo;re locked out of WordPress. If you don&rsquo;t have any backup data, proceed to the following tasks.<\/li>\n\n\n\n<li><a href=\"\/tutorials\/backup-wordpress\"><strong>Back up WordPress<\/strong><\/a> &ndash; do this before making any changes to your site&rsquo;s database. This helps return your site to its previous state in case any changes cause issues.<\/li>\n\n\n\n<li><strong>Install an FTP client<\/strong> &ndash; access your web server through a local computer manually using an FTP client such as FileZilla. It only takes a few easy steps to <a href=\"\/tutorials\/ftp\/filezilla-ftp-configuration\">configure the FTP<\/a>, and the process is similar for other clients as well.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-9-causes-of-getting-locked-out-of-wordpress-and-how-to-fix-them\">9 Causes of Getting Locked Out of WordPress and How to Fix Them<\/h2><p>There are nine reasons why you could be locked out of WordPress. They include wrong data inputs, system errors, and cyberattacks. In this section, we will help you to identify the situation and act accordingly.<\/p><p>\n\n\n    <p class=\"warning\">\n        <strong>Warning!<\/strong> Make sure to back up your site before following any of these troubleshooting tips. If the changes and attempts to fix the problem cause any issues, you&rsquo;ll still have all the site&rsquo;s critical data on hand.    <\/p>\n    \n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-1-incorrect-login-credentials\">1. Incorrect Login Credentials<\/h3><p>One of the most common reasons for getting locked out of WordPress is entering incorrect login credentials. They typically include a username and a password.<\/p><p>Usernames may not directly reference someone&rsquo;s real name, and passwords are case-sensitive and usually hidden as we type. That&rsquo;s why it&rsquo;s possible to enter an incorrect password or username inadvertently.<\/p><p><strong>How to Fix This?<\/strong><\/p><p>Carefully type in your credentials, paying special attention to the capitalization. To avoid issues like forgetting or mistyping your passwords, consider using a password management app such as <a href=\"https:\/\/www.lastpass.com\/\" target=\"_blank\" rel=\"noopener\">LastPass<\/a> or <a href=\"https:\/\/1password.com\/\" target=\"_blank\" rel=\"noopener\">1Password<\/a>.<\/p><p>If that didn&rsquo;t solve the issue, try resetting the password by using WordPress&rsquo;s built-in <strong>recovery <\/strong>feature on the login page. Here&rsquo;s a step-by-step guide:<\/p><ol class=\"wp-block-list\">\n<li>Click <strong>Lost your password?<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/wordpress-lost-your-password.png\"><img decoding=\"async\" width=\"792\" height=\"678\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/wordpress-lost-your-password.png\/public\" alt=\"Clicking Lost your password? when logging in to your WordPress account.\" class=\"wp-image-37156\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/wordpress-lost-your-password.png\/w=792,fit=scale-down 792w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/wordpress-lost-your-password.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/wordpress-lost-your-password.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/wordpress-lost-your-password.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 792px) 100vw, 792px\" \/><\/a><\/figure><\/div><ol start=\"2\" class=\"wp-block-list\">\n<li>Enter your username or email address in the available field.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/my-website-my-account.png\"><img decoding=\"async\" width=\"1024\" height=\"227\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/my-website-my-account.png\/public\" alt=\"Entering your username or email address to reset your WordPress account password.\" class=\"wp-image-37157\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/my-website-my-account.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/my-website-my-account.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/my-website-my-account.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/my-website-my-account.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/my-website-my-account.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Click the <strong>Reset password<\/strong> button.<\/li>\n\n\n\n<li>WordPress will send a link to your email address to create a new password. Follow the prompt, then <a href=\"\/tutorials\/wordpress\/how-to-login-to-wordpress-dashboard\">log in to WordPress<\/a> again with the new credentials.<\/li>\n<\/ol><p>If you recently migrated your domain to a new server, make sure that the domain is pointing to the correct registrar. Otherwise, your account may be locked out as well.<\/p><h3 class=\"wp-block-heading\" id=\"h-2-password-does-not-work-amp-failed-password-recovery\">2. Password Does Not Work &amp; Failed Password Recovery<\/h3><p>You may forget your password, but there&rsquo;s also a chance that someone has gained access to your site and changed it.<\/p><p>If the password recovery on the login screen didn&rsquo;t work or you didn&rsquo;t receive a password reset email, it can be because your <a href=\"\/tutorials\/wordpress-not-sending-email\">WordPress website is not sending emails<\/a>.<\/p><p><strong>How to Fix This?<\/strong><\/p><p>You can resolve this problem by resetting your password from your WordPress hosting account control panel.<\/p><p>We&rsquo;ll guide you through this process using Hostinger&rsquo;s hPanel and phpMyAdmin:<\/p><ol class=\"wp-block-list\">\n<li>Open <strong>hPanel<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Databases<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-1.png\"><img decoding=\"async\" width=\"1160\" height=\"631\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-1.png\/public\" alt=\"Databases section in the hPanel\" class=\"wp-image-81535\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-1.png\/w=1160,fit=scale-down 1160w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-1.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-1.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-1.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-1.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1160px) 100vw, 1160px\" \/><\/a><\/figure><ol start=\"3\" class=\"wp-block-list\">\n<li>On the <strong>Management <\/strong>page, click <strong>Enter phpMyAdmin,<\/strong> and you&rsquo;ll be redirected to phpMyAdmin&rsquo;s administration page.<\/li>\n<\/ol><figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin.png\"><img decoding=\"async\" width=\"1157\" height=\"263\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin.png\/public\" alt=\"the list of current MySQL databases and users in hPanel's Database Management page\" class=\"wp-image-81536\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin.png\/w=1157,fit=scale-down 1157w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1157px) 100vw, 1157px\" \/><\/a><\/figure><ol start=\"4\" class=\"wp-block-list\">\n<li>Select <strong>Structure<\/strong>. Scroll down to find <strong>wp_users<\/strong> and click it.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/phpMyAdmin-structure.png\"><img decoding=\"async\" width=\"1024\" height=\"398\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/phpMyAdmin-structure.png\/public\" alt=\"Selecting the Structure tab in the phpMyAdmin's administration page\" class=\"wp-image-37159\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/phpMyAdmin-structure.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/phpMyAdmin-structure.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/phpMyAdmin-structure.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/phpMyAdmin-structure.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/phpMyAdmin-structure.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"5\" class=\"wp-block-list\">\n<li>You&rsquo;ll see the login credentials of the site&rsquo;s users. Click <strong>Edit.<\/strong><\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin-structure-wpuser.png\"><img decoding=\"async\" width=\"946\" height=\"103\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin-structure-wpuser.png\/public\" alt=\"Editing login credentials in phpMyAdmin\" class=\"wp-image-81552\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin-structure-wpuser.png\/w=946,fit=scale-down 946w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin-structure-wpuser.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin-structure-wpuser.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin-structure-wpuser.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 946px) 100vw, 946px\" \/><\/a><\/figure><\/div><ol start=\"6\" class=\"wp-block-list\">\n<li>Type in the new password in the <strong>user_pass<\/strong> column to change it, then make other changes as needed.<\/li>\n\n\n\n<li>Change the<strong> Function<\/strong> value of your password to <strong>MD5<\/strong>. This is used to add an additional layer of security.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/function-value.png\"><img decoding=\"async\" width=\"1442\" height=\"222\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/function-value.png\/public\" alt=\"Changing the function value of your password to MD5\" class=\"wp-image-37162\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/function-value.png\/w=1442,fit=scale-down 1442w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/function-value.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/function-value.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/function-value.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/function-value.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1442px) 100vw, 1442px\" \/><\/a><\/figure><\/div><ol start=\"8\" class=\"wp-block-list\">\n<li>Press <strong>Go<\/strong> to save the changes.<\/li>\n<\/ol><p>Then, log in to WordPress using the new password.<\/p><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-wordpress-hosting\" href=\"\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"2048\" height=\"600\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/public\" alt=\"\" class=\"wp-image-111781\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=2048,fit=scale-down 2048w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-3-losing-administrator-privileges\">3. Losing Administrator Privileges<\/h3><p>If you can&rsquo;t log in, your username doesn&rsquo;t exist, or you can log in but no longer have administrative privileges, it means you&rsquo;ve lost access to the WordPress admin dashboard.<\/p><p>This can happen if the site owner has revoked your admin rights. Another possible reason is a cyberattack where the hacker has deleted your WordPress administrator privileges.<\/p><p><strong>How to Fix This?<\/strong><\/p><p>If you have lost admin privileges due to a cyberattack, add a new admin user to your <a href=\"\/tutorials\/wordpress-database\">WordPress database<\/a> through phpMyAdmin. Here&rsquo;s a guide on how to do it:<\/p><ol class=\"wp-block-list\">\n<li>Open <strong>hPanel<\/strong>.<\/li>\n\n\n\n<li>Navigate to <strong>Databases<\/strong> -&gt; <strong>Enter phpMyAdmin<\/strong>.<\/li>\n\n\n\n<li>Once you&rsquo;re on the phpMyAdmin dashboard, click on <strong>wp_users<\/strong>, then select <strong>Insert<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin-wpuser-insert.png\"><img decoding=\"async\" width=\"950\" height=\"345\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin-wpuser-insert.png\/public\" alt=\"Clicking on wp_users and selecting Insert in phpMyAdmin\" class=\"wp-image-81566\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin-wpuser-insert.png\/w=950,fit=scale-down 950w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin-wpuser-insert.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin-wpuser-insert.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/hpanel-databases-enterphpmyadmin-wpuser-insert.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 950px) 100vw, 950px\" \/><\/a><\/figure><ol start=\"4\" class=\"wp-block-list\">\n<li>Fill out the fields as needed and save the changes. Pick an <strong>ID number<\/strong> that isn&rsquo;t in use in the database, and keep the<strong> user_status<\/strong> as 0.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/user-details.png\"><img decoding=\"async\" width=\"1185\" height=\"635\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/user-details.png\/public\" alt=\"Filling out the fields to restore WordPress administrator privileges\" class=\"wp-image-37164\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/user-details.png\/w=1185,fit=scale-down 1185w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/user-details.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/user-details.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/user-details.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/user-details.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1185px) 100vw, 1185px\" \/><\/a><\/figure><\/div><ol start=\"5\" class=\"wp-block-list\">\n<li>Note that you&rsquo;ll need the information from this form later on, especially the <strong>ID<\/strong>, <strong>user_login<\/strong>, and <strong>user_pass<\/strong>. Click <strong>Go <\/strong>to save changes.<\/li>\n\n\n\n<li>Next, head to the navigation panel on the left side of the screen and click <strong>wp_usermeta<\/strong>. Select the <strong>Insert <\/strong>tab.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/phpMyAdmin-wp-usermeta.png\"><img decoding=\"async\" width=\"1024\" height=\"548\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/phpMyAdmin-wp-usermeta.png\/public\" alt=\"Clicking wp_usermeta in phpMyAdmin\" class=\"wp-image-37165\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/phpMyAdmin-wp-usermeta.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/phpMyAdmin-wp-usermeta.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/phpMyAdmin-wp-usermeta.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/phpMyAdmin-wp-usermeta.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"7\" class=\"wp-block-list\">\n<li>Fill in the columns with the following information:\n<ul class=\"wp-block-list\">\n<li><strong>unmeta_id<\/strong> &ndash; leave it blank as it will be generated automatically.<\/li>\n\n\n\n<li><strong>user_id<\/strong> &ndash; enter the ID number you&rsquo;ve inserted in step four.<\/li>\n\n\n\n<li><strong>meta_key<\/strong> &ndash; type in <strong>wp_capabilities<\/strong>.<\/li>\n\n\n\n<li><strong>meta_value<\/strong> &ndash; insert <strong>a:1:{s:13:&rdquo;administrator&rdquo;;b:1;}<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Make sure to insert the <strong>meta_value<\/strong> correctly. We suggest copy-pasting instead of writing it manually to avoid any errors. Once you&rsquo;re done, click<strong> Go<\/strong>.<\/li>\n\n\n\n<li>Repeat step six to add the second meta value, with a different set of information:\n<ul class=\"wp-block-list\">\n<li><strong>unmeta_id<\/strong> &ndash; leave it blank as well.<\/li>\n\n\n\n<li><strong>user_id<\/strong> &ndash; enter the same ID number you&rsquo;ve inserted in step four.<\/li>\n\n\n\n<li><strong>meta_key<\/strong> &ndash; type in <strong>wp_user_level<\/strong>.<\/li>\n\n\n\n<li><strong>meta_value<\/strong> &ndash; type in <strong>10<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Click <strong>Go<\/strong> once again to save the changes.<\/li>\n<\/ol><p>You&rsquo;re all set now. Log in to WordPress with the new administrator credentials.<\/p><h3 class=\"wp-block-heading\" id=\"h-4-too-many-login-attempts\">4. Too Many Login Attempts<\/h3><p>Some site owners use <a href=\"\/tutorials\/wordpress-security-plugins\">security plugins<\/a> to limit the number of attempts users can make to log in at one time. It&rsquo;s a great way to prevent <a href=\"https:\/\/searchsecurity.techtarget.com\/definition\/brute-force-cracking\" target=\"_blank\" rel=\"noopener\">brute-force attacks<\/a>, but it can also become the reason for you being locked out of your own account.<\/p><p><strong>How to Fix This?<\/strong><\/p><p>The login form will work again after some time, but if you can&rsquo;t wait, you can opt to deactivate the plugin through an FTP client. Here&rsquo;s how to do it:<\/p><ol class=\"wp-block-list\">\n<li>Set up an FTP client through hPanel.<\/li>\n\n\n\n<li>Log in to the FTP server and head to the <strong>Remote Site<\/strong> window.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/remote-site.png\"><img decoding=\"async\" width=\"581\" height=\"112\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/remote-site.png\/public\" alt=\"The remote site window showing domains and public_html files\" class=\"wp-image-37166\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/remote-site.png\/w=581,fit=scale-down 581w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/remote-site.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/remote-site.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 581px) 100vw, 581px\" \/><\/a><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Open the <strong>domains<\/strong> -&gt; <strong>public_html<\/strong> folder, scroll down and find the <strong>wp-content<\/strong> folder. Select <strong>plugins<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/remote-site-wp-content.png\"><img decoding=\"async\" width=\"556\" height=\"204\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/remote-site-wp-content.png\/public\" alt=\"Selecting plugins in the wp-content folder\" class=\"wp-image-37167\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/remote-site-wp-content.png\/w=556,fit=scale-down 556w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/remote-site-wp-content.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/remote-site-wp-content.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 556px) 100vw, 556px\" \/><\/a><\/figure><\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>In this article, we are using <a href=\"https:\/\/wordpress.org\/plugins\/limit-login-attempts-reloaded\/\" target=\"_blank\" rel=\"noopener\">Limit Login Attempts Reloaded<\/a> as our security plugin. Right-click the <strong>limit login attempts <\/strong>plugin<strong> <\/strong>folder and select <strong>Rename<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/limit-login-attempts.png\"><img decoding=\"async\" width=\"582\" height=\"442\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/limit-login-attempts.png\/public\" alt=\"Right-clicking on the limit login attempts plugin folder and selecting rename\" class=\"wp-image-37168\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/limit-login-attempts.png\/w=582,fit=scale-down 582w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/limit-login-attempts.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/limit-login-attempts.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 582px) 100vw, 582px\" \/><\/a><\/figure><\/div><ol start=\"5\" class=\"wp-block-list\">\n<li>Type in <strong>deactivate_<\/strong> before the plugin&rsquo;s name.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/deactivate-limit-login-attempts.png\"><img decoding=\"async\" width=\"558\" height=\"180\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/deactivate-limit-login-attempts.png\/public\" alt=\"Typing deactivate before the plugin's name\" class=\"wp-image-37170\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/deactivate-limit-login-attempts.png\/w=558,fit=scale-down 558w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/deactivate-limit-login-attempts.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/deactivate-limit-login-attempts.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 558px) 100vw, 558px\" \/><\/a><\/figure><\/div><p>Now, the plugin is disabled, and you can log in right away.<\/p><p>\n\n\n<div><p class=\"important\"><b>Important!<\/b> Keep in mind that this is a solution for when you need to access the dashboard immediately and can&rsquo;t wait for the login form to work again. We strongly recommend reactivating the security plugin to keep your WordPress site secure.<\/p><\/div>\n\n\n\n<\/p><p>Once you have successfully accessed the WordPress dashboard, go back to the FTP client and rename the <strong>deactivate_limit-login-attempts <\/strong>folder back to its original name. In this example, we rename it back to <strong>limit-login-attempts<\/strong>.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/rename-limit-login-attempts.png\"><img decoding=\"async\" width=\"558\" height=\"180\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/rename-limit-login-attempts.png\/public\" alt=\"Renaming back to limit-login-attemps after successfully accessing the WordPress dashboard\" class=\"wp-image-37171\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/rename-limit-login-attempts.png\/w=558,fit=scale-down 558w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/rename-limit-login-attempts.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/rename-limit-login-attempts.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 558px) 100vw, 558px\" \/><\/a><\/figure><\/div><p>After renaming the plugin folder, navigate to your <strong>WordPress dashboard <\/strong>and the<strong> Plugins<\/strong> tab. Check if the plugin is activated &ndash; if not, simply click <strong>Activate<\/strong>.<\/p><h3 class=\"wp-block-heading\" id=\"h-5-incorrect-wordpress-url\">5. Incorrect WordPress URL<\/h3><p><a href=\"\/tutorials\/change-wordpress-domain-name\">Changing your WordPress site&rsquo;s domain name<\/a> may also get you locked out. If you recently made such a change, check if there&rsquo;s any inconsistency between your site&rsquo;s URL and the one stored in the MySQL database.<\/p><p><strong>How to Fix This?<\/strong><\/p><p>The MySQL database stores all WordPress data, including site URLs. If you want to <a href=\"\/tutorials\/wordpress\/how-to-change-wordpress-urls-in-mysql-database-using-phpmyadmin\">change your WordPress URL in the database<\/a>, use phpMyAdmin to solve the problem.<\/p><h3 class=\"wp-block-heading\" id=\"h-6-error-establishing-database-connection\">6. Error Establishing Database Connection<\/h3><p>A database connection error affects your entire WordPress site. It makes you unable to connect to the database, as in addition to storing URLs, it also stores all your site information, including content, user accounts, and permissions.<\/p><p>This usually happens when there&rsquo;s something wrong with the server or the database. Corrupted files can also lead to this &ndash; a poorly-working plugin is one of the various reasons that may cause the issue.<\/p><p><strong>How to Fix This?<\/strong><\/p><p>There are several solutions for <a href=\"\/tutorials\/wordpress-error-establishing-database-connection\">WordPress database connection errors<\/a>:<\/p><ul class=\"wp-block-list\">\n<li>Activate the built-in WordPress repair configuration.<\/li>\n\n\n\n<li>Fix the corrupted files.<\/li>\n\n\n\n<li>Check the database settings through the control panel on your hosting account.<\/li>\n<\/ul><p>If all the previous methods still couldn&rsquo;t restore the connection, try to disable the plugins you&rsquo;ve recently installed before the incident. Follow the steps in section four to deactivate the plugin.<\/p><p>Database errors can also be caused by a troubled database server. This typically happens on a shared host, where the number of permitted concurrent connections is limited. Simply contact your hosting provider to check if the error is on their end, and ask them to fix it.<\/p><h3 class=\"wp-block-heading\" id=\"h-7-white-screen-of-death-ws\">7. White Screen of Death (WS)<\/h3><p>The white screen of death is the blank white page you may see when trying to access the WordPress dashboard. The reasons behind this problem vary from bad plugins to insufficient website memory.<\/p><p><strong>How to fix this?<\/strong><\/p><p>Here are some options to <a href=\"\/tutorials\/fix-wordpress-white-screen-of-death\">fix the WordPress white screen of death<\/a>:<\/p><ul class=\"wp-block-list\">\n<li><strong>Increase your site&rsquo;s <\/strong><a href=\"https:\/\/support.hostinger.com\/en\/articles\/1583711-what-is-php-memory-limit\" target=\"_blank\" rel=\"noopener\"><strong>memory limit<\/strong><\/a> &ndash; provide more memory capacity for your WordPress website.<\/li>\n\n\n\n<li><strong>Disable bad plugins<\/strong> &ndash; disable recently installed plugins to check if a plugin is causing the issue. Since you can&rsquo;t access the dashboard, use an FTP client to disable your plugins manually. Follow the steps in section four to do this.<\/li>\n\n\n\n<li><strong>Install a default theme via phpMyAdmin<\/strong> &ndash; <a href=\"https:\/\/support.hostinger.com\/en\/articles\/4469298-how-to-change-wordpress-theme-via-phpmyadmin\" target=\"_blank\" rel=\"noopener\">change your WordPress theme without accessing the admin area<\/a>.<\/li>\n<\/ul><h3 class=\"wp-block-heading\" id=\"h-8-parse-error-syntax-error\">8. Parse Error: Syntax Error<\/h3><p>If you see a message that says <strong>parse error: syntax error<\/strong> when you try to access the site, incorrect code is the cause of the issue. This type of error is very common, as even a single misplaced letter can trigger it. Fortunately, it can also be fixed easily.<\/p><p><strong>How to Fix This?<\/strong><\/p><p>Here&rsquo;s what you can do to fix a syntax error:<\/p><ul class=\"wp-block-list\">\n<li><strong>Trace the source of error<\/strong> &ndash; check if the code changes you&rsquo;ve made recently are correct and use proper syntax.<\/li>\n<\/ul><ul class=\"wp-block-list\">\n<li><strong>Repair the bad code via an FTP client<\/strong> &ndash; <a href=\"\/tutorials\/how-to-fix-wordpress-syntax-error\">fix the WordPress syntax error<\/a> on your WordPress website by determining the corrupted file and fixing it via the file manager.<\/li>\n<\/ul><p>\n\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>Determine the source of the error by opening your site on a browser and waiting for the syntax error message to appear. It will show you the full path of the error.<\/p>\n                <\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-9-issues-with-plugins-or-themes\">9. Issues with Plugins or Themes<\/h3><p>A recent addition of a new plugin or theme may also lead to you being locked out of WordPress. The reason might be the <strong>.htaccess<\/strong> file of the plugin or theme being corrupted or misconfigured.<\/p><p>The <strong>.htaccess<\/strong> file is a configuration file that contains essential server instructions. It is used to enable or disable various functionalities and features, including applying access restrictions to your website.<\/p><p><strong>How to fix this?<\/strong><\/p><p>Fix the corrupted <strong>.htaccess<\/strong> file by using an FTP client:<\/p><ol class=\"wp-block-list\">\n<li>Log in to the FTP server, then head to the <strong>Remote site<\/strong> window.<\/li>\n\n\n\n<li>Open <strong>domains<\/strong> -&gt; <strong>public_html<\/strong> and scroll down to find the <strong>.htaccess<\/strong> file.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/FTP-htaccess.png\"><img decoding=\"async\" width=\"590\" height=\"439\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/FTP-htaccess.png\/public\" alt=\"Selecting the .htaccess file in the FTP server\" class=\"wp-image-37172\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/FTP-htaccess.png\/w=590,fit=scale-down 590w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/FTP-htaccess.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/FTP-htaccess.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 590px) 100vw, 590px\" \/><\/a><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Once you find it, right-click it to rename it to <strong>htaccess_old<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/htaccess-old.png\"><img decoding=\"async\" width=\"560\" height=\"192\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/htaccess-old.png\/public\" alt=\"Renaming the .htaccess file to .htaccess_old\" class=\"wp-image-37173\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/htaccess-old.png\/w=560,fit=scale-down 560w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/htaccess-old.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/htaccess-old.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 560px) 100vw, 560px\" \/><\/a><\/figure><\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>Go to your WordPress dashboard, navigate to <strong>Settings<\/strong> -&gt; <strong>Permalinks<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/settings-permalinks.png\"><img decoding=\"async\" width=\"1695\" height=\"839\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/settings-permalinks.png\/public\" alt=\"Permalink Settings in the WordPress dashboard\" class=\"wp-image-81569\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/settings-permalinks.png\/w=1695,fit=scale-down 1695w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/settings-permalinks.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/settings-permalinks.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/settings-permalinks.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/settings-permalinks.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1695px) 100vw, 1695px\" \/><\/a><\/figure><ol start=\"5\" class=\"wp-block-list\">\n<li>You don&rsquo;t need to change anything on the <strong>Permalink settings<\/strong> page, just hit the <strong>Save Changes<\/strong> button. This will generate a new <strong>.htaccess<\/strong> file automatically.<\/li>\n\n\n\n<li>Check if the new <strong>.htaccess<\/strong> file is already generated by going back to the FTP client directory and refreshing the screen.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/new-htaccess-file.png\"><img decoding=\"async\" width=\"560\" height=\"194\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/new-htaccess-file.png\/public\" alt=\"Going back to the FTP client directory to check if the new .htaccess file is there\" class=\"wp-image-37175\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/new-htaccess-file.png\/w=560,fit=scale-down 560w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/new-htaccess-file.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/new-htaccess-file.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 560px) 100vw, 560px\" \/><\/a><\/figure><\/div><ol start=\"7\" class=\"wp-block-list\">\n<li>Once you see the new <strong>.htaccess<\/strong> file in the directory, delete <strong>htaccess_old<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/09\/delete-htaccess-old.png\"><img decoding=\"async\" width=\"561\" height=\"194\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/delete-htaccess-old.png\/public\" alt=\"Deleting the .htaccess_old file\" class=\"wp-image-37176\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/delete-htaccess-old.png\/w=561,fit=scale-down 561w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/delete-htaccess-old.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/09\/delete-htaccess-old.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 561px) 100vw, 561px\" \/><\/a><\/figure><\/div><p>Now you can return to your WordPress website, access the login page, and log in as usual.<\/p><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>Here&rsquo;s a quick recap of the nine issues causing you to be locked out of WordPress we&rsquo;ve listed in this article and how to fix them:<\/p><ul class=\"wp-block-list\">\n<li><strong>Incorrect login credentials<\/strong>. Use WordPress&rsquo;s built-in password recovery feature. Remember to type in your password carefully or use a password manager app for secure and hassle-free logins.<\/li>\n\n\n\n<li><strong>Password doesn&rsquo;t work &amp; failed password recovery<\/strong>. If the password recovery method didn&rsquo;t work, create a new password through your hosting provider&rsquo;s control panel.<\/li>\n\n\n\n<li><strong>Losing admin privileges<\/strong>. Create a new admin user in the database through phpMyAdmin.<\/li>\n\n\n\n<li><strong>Too many login attempts<\/strong>. To log in right away, use an FTP client to disable the security plugin that prevents you from logging in.<\/li>\n\n\n\n<li><strong>Incorrect WordPress URL<\/strong>. Update your database with the new URL through phpMyAdmin.<\/li>\n\n\n\n<li><strong>Error establishing a database connection<\/strong>. Check if there&rsquo;s something wrong with your database through your hosting account&rsquo;s control panel, or disable bad plugins and themes.<\/li>\n\n\n\n<li><strong>White Screen of Death<\/strong>. Increase the site&rsquo;s memory limit, disable bad plugins, and set the site&rsquo;s theme to default.<\/li>\n\n\n\n<li><strong>Parse error: syntax error<\/strong>. Determine the source of the error and fix it via an FTP client.<\/li>\n\n\n\n<li><strong>Issues with plugins or themes<\/strong>. Fix the corrupted <strong>.htaccess<\/strong> file via an FTP client.<\/li>\n<\/ul><p>Now, you&rsquo;ll be able to quickly regain access to your WordPress admin dashboard. If you have any questions, don&rsquo;t hesitate to leave a comment or contact our support team.<\/p><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-wordpress-hosting\" href=\"\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"2048\" height=\"600\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/public\" alt=\"\" class=\"wp-image-111781\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=2048,fit=scale-down 2048w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Getting locked out of your WordPress admin account can be frustrating, especially if it occurs suddenly, and you don&rsquo;t know [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/tutorials\/fix-locked-out-of-wordpress-admin-issue\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":51701,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"Locked Out of WordPress Admin? Here's What You Need to Do","rank_math_description":"Locked out of your WordPress admin account? Check out this article to learn why it happens and nine methods to fix it easily!","rank_math_focus_keyword":"locked out of wordpress","footnotes":""},"categories":[22640,22637],"tags":[],"class_list":["post-4660","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security-and-maintenance","category-wordpress"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/fix-locked-out-of-wordpress-admin-issue","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/solucionar-login-wordpress","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/no-puedo-acceder-a-wordpress","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/wordpress-admin-tidak-bisa-diakses","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/fix-locked-out-of-wordpress-admin-issue","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/fix-locked-out-of-wordpress-admin-issue","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/fix-locked-out-of-wordpress-admin-issue","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/no-puedo-acceder-a-wordpress","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/no-puedo-acceder-a-wordpress","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/no-puedo-acceder-a-wordpress","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/solucionar-login-wordpress","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/fix-locked-out-of-wordpress-admin-issue","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/fix-locked-out-of-wordpress-admin-issue","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/fix-locked-out-of-wordpress-admin-issue","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/fix-locked-out-of-wordpress-admin-issue","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/4660","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/comments?post=4660"}],"version-history":[{"count":35,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/4660\/revisions"}],"predecessor-version":[{"id":140433,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/4660\/revisions\/140433"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media\/51701"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media?parent=4660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/categories?post=4660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/tags?post=4660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}