Title: WordPress admin URL 404 error.
Last modified: January 19, 2024

---

# WordPress admin URL 404 error.

 *  [farkaskorom](https://wordpress.org/support/users/farkaskorom/)
 * (@farkaskorom)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/wordpress-admin-url-404-error/)
 * Hello,
 * I would like to demonstrate my problem. So i have this url and domain and its
   data that were before, has been directly deleted . So now i downloaded wordpress,
   but unfortunately when i try to login, with wp admin, it shows 404 error. Simply
   URL show: “webserver is functioning normally”
 * Anyone could help me please?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-admin-url-404-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/wordpress-admin-url-404-error/#post-17358166)
 * The message does not come from WordPress but is generated by something in your
   hosting. I would recommend that you contact their support to clarify why the 
   message is being generated.
 *  [clayp](https://wordpress.org/support/users/clayp/)
 * (@clayp)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/wordpress-admin-url-404-error/#post-17362134)
 * Your link returns: Error establishing a database connection
   Solutions:**1. Ensure
   that your domain is directed to your hosting provider2. Check your database serverThe“
   Error Establishing a Database Connection” message may surface on your WordPress
   site if your MySQL server is inactive. While various factors can trigger this
   error, an often encountered issue is an excessive number of connections.A database
   server has a predetermined limit for the number of clients connected simultaneously.
   Once it reaches this maximum capacity, it may be unable to manage additional 
   connections. Consequently, we advise reaching out to your hosting provider to
   inspect your MySQL server.Log into your cPanel account, navigate to Files and
   choose File Manager. Inside public_html, create new file (test.php) and add following
   code:<?php $link = mysqli_connect(‘localhost’, ‘username’, ‘password’); if (!
   $link) { die(‘Could not connect: ‘ . mysqli_error()); } echo ‘Connected successfully’;
   mysqli_close($link); ?>Now access using browser: [http://domain_name/test.php](http://domain_name/test.php)
   3. Check the Database Login CredentialsVerify whether the database login settings
   align with those stored in your wp-config.php file. Access this file using the
   WordPress File Manager in your hosting control panel.If the login information
   in your wp-config.php file differs from the MySQL database settings, synchronize
   them by making the necessary modifications to the wp-config file.4. Fix the corrupted
   files:File corruption can be a result of a defective theme or plugin. To determine
   the culprit causing the error, inspect these components individually. If the 
   error surfaces after activating a new theme, the theme itself may be the source
   of the problem.To address this issue, go to Appearance → Themes in your WordPress
   dashboard, and switch to a different theme.If switching the theme does not resolve
   the “Error Establishing a Database Connection” issue, it could be stemming from
   a corrupted plugin.Access the File Manager section in your cPanel dashboard. 
   Navigate to public_html > wp_content and find the plugins folder. Right-click
   on the folder, and opt for the Rename option.5. Repair the database in wordpressAnother
   issue that could lead to the “Error Establishing a Database Connection” in WordPress
   is a damaged database. This may occur due to data failures resulting from the
   frequent addition or removal of plugins or themes.If your WordPress dashboard
   displays a message similar to “One or more database tables are unavailable. The
   database may need to be repaired,” it could indicate a corrupted database.Add
   the following code in your wp_config.php file:define(‘WP_ALLOW_REPAIR’, true);
 *  Thread Starter [farkaskorom](https://wordpress.org/support/users/farkaskorom/)
 * (@farkaskorom)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/wordpress-admin-url-404-error/#post-17367038)
 * Thanks for your help

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WordPress admin URL 404 error.’ is closed to new replies.

## Tags

 * [admin](https://wordpress.org/support/topic-tag/admin/)
 * [WordPress](https://wordpress.org/support/topic-tag/wordpress/)
 * [Wordpress download](https://wordpress.org/support/topic-tag/wordpress-download/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 4 participants
 * Last reply from: [farkaskorom](https://wordpress.org/support/users/farkaskorom/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/wordpress-admin-url-404-error/#post-17367038)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
