Error establishing a database connection

8 replies
Hello Warriors
What is wrong with my site? how can i fix it?

Thanks
#connection #database #error #establishing
  • Profile picture of the author dougp
    Originally Posted by yitbarek View Post

    Hello Warriors
    What is wrong with my site? how can i fix it?

    Thanks
    Hi, kind of hard to tell without you giving us all the details to reproduce the error. However, my guess would be that you haven't entered the database details correctly. Try rechecking to make sure you typed everything in correctly.
    {{ DiscussionBoard.errors[6724213].message }}
  • Profile picture of the author omgcats
    I've experienced this error quite a bit with Wordpress and it happens when the SQL server is overloaded. A lot of hosts have a limit on the number of database queries that can be run at one time, so if your site is too popular you could get errors trying to connect to the database. If you are on shared hosting, you could also get errors if someone else on your server is getting a lot of traffic! You might want to upgrade your hosting.
    {{ DiscussionBoard.errors[6724854].message }}
  • Profile picture of the author BizOpGuru
    If you've not changed anything it's possibly just a bit of downtime, it's pretty common and shouldn't last too long. As mentioned above it could also just be overloaded. If it's down for a while you may have to take a look to see if any changes have been made to your database credentials, or have the server rebooted by your host.
    Signature
    Build Money Making Websites Easily With Home Website Builder
    Home Website Builder Reviews @ www.homewebsitebuilderreviews.com
    {{ DiscussionBoard.errors[6724871].message }}
  • Profile picture of the author sbucciarel
    Banned
    When did it start and what did you change when this happened? Or is this a new installation and it was never up and running? Need more details before you can get a good answer.
    {{ DiscussionBoard.errors[6724916].message }}
  • Profile picture of the author Chris Thompson
    Originally Posted by yitbarek View Post

    Hello Warriors
    What is wrong with my site? how can i fix it?

    Thanks
    Holy frikkin LOL.

    No details on what you're trying to do.
    No details on what you did before the error showed up.
    You may as well be asking, "She doesn't understand me. What did I do wrong".
    {{ DiscussionBoard.errors[6725051].message }}
  • Profile picture of the author yitbarek
    Okey here is the detail, i am developing this site for a friend. and i see the error for the first time a week ago when i try to login on /wp-admin but i logged in using the history /donation/posts.php, and i edit wp-config file change password to new one and check database and user name, all correct. I also need to transfer the site to new domain.
    {{ DiscussionBoard.errors[6727369].message }}
    • Profile picture of the author Dan Thompson
      Originally Posted by yitbarek View Post

      and i edit wp-config file change password to new one and check database and user name, all correct. I also need to transfer the site to new domain.
      Your database connection details are incorrect in the config file, either that or you haven't added the user to the database and granted the needed permissions.

      To transfer the site to a new domain, you just need to move the files from domain1.com > domain2.com and then edit the database via PHPMyAdmin (or the command line) and edit the following 2 fields in the wp_options table:

      siteurl
      home

      Changing the values of the old domain to the new one, and then saving.

      If after moving to the new domain you get 404 errors when clicking on Posts/Pages, you just need to log into your WP Admin area and go to Settings > Permalinks > Save Changes
      Signature

      I'm a director of D9 Hosting
      The only host in the world to offer a 1 Click DLGuard installation feature from within the cPanel.
      Join today, and receive a 10% discount by using the following coupon code: Warriors

      {{ DiscussionBoard.errors[6727448].message }}
  • Profile picture of the author yitbarek
    I deleted the database user and create again and change the pass on wp config, the problem solved on the homepage, but the error still exists on wp-admin returns db error
    {{ DiscussionBoard.errors[6730827].message }}

Trending Topics