Tutorial : How to Prevent the Warning Error Establishing Database Connection on Wordpress

in #utopian-io9 years ago (edited)

How to Prevent the Warning Error Establishing Database Connection on Wordpress#
Error database connection.JPG
The Warning Error Establishing Database Connection on Wordpress is a notification for a website when table "prefix name" not same with the wordppress database. This wordpress error can be definite with others means:

  • When a person check outs your website and gets the message, it will release an error 500 HTTP standing code in your logs. This condition code will certainly appear when your website is experiencing "interior web server error".
    server.JPG

This suggests there is something wrong on your web server and also the requested source is not sent by the server. If all works well, your website will certainly provide 200 HTTP standing codes, which means whatever is great.

  • If PHP could not ask for information from the data source, you will get an "Mistake developing a data source link" message. The whole web page will be empty due to the fact that there is no information obtained to reveal on the internet browser screen. Not only disrupt the front end of your web site, it can also make you incapable to access your WordPress dashboard.

Do not worry and don't be panic about the problem, because I will share you the ways how to make the error can be fixed.
For example :
Table prefix name : wpq_ but the database php is wpa_ it is mean not same. The site can not be opened If this occurs to your wordpress site.
Table Prefix.JPG

The others reason why this error for a wordpress site are :

Your WordPress internet site makes use of a different login info to get in touch with MySQL Data source.
The data source is corrupt. With the ever-changing areas of styles, plugins, and users frequently getting rid of and also installing them, often the database becomes corrupted. This can be brought on by tables that are missing out on or corrupted separately, or possibly some info was accidentally erased.
There is a damaged documents with WordPress setup or this issue could also happen because of hackers.

Here I will tell you the way how to solve this problem :

  • Login to your wordpress cpanel
    Cpanel.JPG
  • Open the file manager
    File Manager.JPG
  • Open the file for the error site
  • Find the Wp-Config.php then open it.
    Wp-config.JPG
  • Find the table prefix name on wp-config.php
  • Make sure the table prefix on the wp-config.php and phpmyadmin database is same. Like on the picture below:
    php.JPG
    Well Done...!!!
    Your website can be acces again,.
    This Problem solving is only for the phpmyadmin database is not compatible to wp-config.php.
    Backup your wordpress data before do it. Thank you so much for @utopian.io that was given me a chance to share this tutorial, this is benefit for the wordpress beginner
    Thank You.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Your contribution cannot be approved yet because it is not as informative as other contributions. See the Utopian Rules. Please edit your contribution and add try to improve the length and detail of your contribution (or add more images/mockups/screenshots), to reapply for approval.

You may edit your post here, as shown below:

You can contact us on Discord.
[utopian-moderator]

I had edited my post... and now my post is informatively by insert the detail of image of each points.

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @apkmopo.com I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • This is your first accepted contribution here in Utopian. Welcome!

Suggestions

  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!

Get Noticed!

  • Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.04
TRX 0.32
JST 0.090
BTC 62449.30
ETH 1756.62
USDT 1.00
SBD 0.39