How to solve the problem Wp-Admin not working
In this tutorial we will see how to solve the problem of closing Wp-Admin
Incorrect password error in wp-admin screen
A common error people face regarding this issue is being locked out of WordPress admin after entering an "incorrect password" even if you entered the correct password and attempted to reset your word. password.
If you try to reset your password and you do not receive an email notification asking you to do so, you may be the victim of an attack.
You can reset your password manually in phpMyAdmin.
It is a tool that allows you to maintain and configure your MySQL database through a user-friendly interface.
If your host is using cPanel, log in, scroll down to the Database section and click on phpMyAdmin.
Use your cPanel username and password to log in to phpMyAdmin. Use another tab to connect to your site's file manager. You can also use an FTP client, such as FileZilla.
Open your root directory, usually called public_html, and open your wp-config.php file. You may need to download and open it in a text editor on your computer to view it.
What you should look for is a define () function with the name DB_NAME. This will allow you to know the name of your database.
Return to the tab where you opened phpMyAdmin. You will find a lot of tabs at the top of phpMyAdmin.
Select Databases and select the database whose name corresponds to the one you found in your wp-config.php file.
You should see a screen with a large table with lots of values that contain "wp" prefixes.
Scroll until you find wp_users, and click on it.
Look closely at the values in your table may include a few letters between wp and users, such as wp_blogt_users.
You should now see a smaller table that contains all of the users on your site.
Find your primary administrator account and click the Edit button associated with it.
You will find your password in the user_pass field, but you will not recognize it. This is because it is encrypted in MD5.
Only MD5-hash passwords work in this field, so you must create your new password using a MD5 hash generator.
Enter the password you want to assign to your administrator account in the text box.
Then click Generate to display the hash of your password.
Copy this hash string and paste it into the Value column of user_pass in phpMyAdmin.
Click Go at the bottom of the page to save your new password.
Make sure to use the password you entered in the text box to log into wp-admin, not the MD5-hash version .
Locked out of WordPress Admin due to lost administrative privileges
If you do not have administrator privileges, you may have been hacked.
In the meantime, you will need to restore administrator privileges to your user account.
Use the instructions in the previous section to access the wp_users section of your database.
Once you're there, click the Insert tab.
You will find a table with empty values, giving you the option of creating an entirely new administrator account.
Problems with security plugins and the wp-admin login screen
Some security plugins allow you to limit the number of attempts a user can make to access your site.
While this blocks hackers who simply access your site's wp-admin screen and try to log in with various passwords, it can also accidentally block you.
If you think you’re having a problem with a security plugin, connect to your host’s file manager or connect your site to an FTP server with FTP clients such as FileZilla.
Open the root directory of your site, usually called public_html.
Open the wp-content folder and open the Plugins folder. Right-click the security plug-in folder and rename it to disable it.
Try to connect to your site.
If you can't, you may have to wait until your account freeze is lifted.
These types of plugins allow you to choose the duration for which a user is blocked on your site when he fails to connect correctly too many times.
If you think this is your problem, decrease the blocking time of a user from 5 to 10 minutes after accessing your site.
Database connection error
Try connecting to other pages on your website. If you are having trouble accessing your entire site, not just wp-admin, you may have an error when establishing a connection to the database.
A faulty plugin could be the cause of this problem.
Connect to your host's file manager or use an FTP client to find your Plugins folder.
Once you do, rename it to whatever you want to disable all of your plugins.
Try to navigate to your site now.
If you can connect without problems, your error is caused by a plugin.
Reactivate each plugin one by one, refreshing your site after each activation, to see which one is causing the problem.
Connect to your host's file manager or use an FTP client to find your Plugins folder.
Once you do, rename it to whatever you want to disable all of your plugins.
Try to navigate to your site now.
If you can connect without problems, your error is caused by a plugin.
Reactivate each plugin one by one, refreshing your site after each activation, to see which one is causing the problem.
Defective theme
Themes can also be poorly coded, especially if you don't update them and WordPress is important enough.
Make sure that a default theme is installed on your site and rename the folder of your individual theme to deactivate it.
If you no longer see a problem and can connect to your site, you must correct your theme. Contact the developer of your theme if it is a premium theme.