Closed Thread
Results 1 to 5 of 5
Like Tree2Likes
  • 1 Post By daftster
  • 1 Post By Icecoldcoke

Thread: WordPress - Error Establishing a database connection

  1. #1
    daftster is offline x10Hosting Member daftster is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    21

    WordPress - Error Establishing a database connection

    Hi,

    My site is having this problem.
    Error establishing a database connection

    This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.
    • Are you sure you have the correct username and password?
    • Are you sure that you have typed the correct hostname?
    • Are you sure that the database server is running?
    If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.



    I have done nothing and this just came out.



    Thanks,
    daftster
    http://www.binondochineseparish.org
    dinomirt96 likes this.

  2. #2
    Icecoldcoke is offline x10Hosting Member Icecoldcoke is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    60

    Re: WordPress - Error Establishing a database connection

    In your public_html (or where your WordPress is located). Open wp-config.php.

    Where it says

    Code:
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
    change localhost to mysql.x10hosting.com

    So it says

    Code:
    define('DB_HOST', 'mysql.x10hosting.com'); // 99% chance you won't need to change this value
    If it already says mysql.x10hosting.com, then idk :P


    Also, double check that these values are correct:

    Code:
    define('DB_NAME', 'CPANELTHINGY_Wordpressorweyourdbnameis'); // The name of the database
    define('DB_USER', 'CPANELTHINGY_lolhiusernamehere'); // Your MySQL username
    define('DB_PASSWORD', 'lolgoodpasswordhere'); // ...and password
    Last edited by Icecoldcoke; 12-18-2007 at 09:08 PM.

  3. #3
    daftster is offline x10Hosting Member daftster is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    21

    Re: WordPress - Error Establishing a database connection

    Now WORKING!!! did change to mysql.x10hosting.com.
    What happened there? there was an update? THANKS!!!!

  4. #4
    Icecoldcoke is offline x10Hosting Member Icecoldcoke is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    60

    Re: WordPress - Error Establishing a database connection

    Quote Originally Posted by daftster View Post
    Now WORKING!!! did change to mysql.x10hosting.com.
    What happened there? there was an update? THANKS!!!!
    Yeah, all the DBs were moved to a new server, so it was required that all DB using things were configured to point to the new server.
    karimirt47 likes this.

  5. #5
    Slothie's Avatar
    Slothie is offline Lord Of The Keys Slothie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Singapore
    Posts
    1,432

    Re: WordPress - Error Establishing a database connection

    Issue seems to be resolved. Closing thread now.

    Easiest 70 points you'll make on x10

    Feel free to add my reputation by clicking on the if you found my post helpful to you :P


    If I am not responding to your PMs, that means I am ignoring you. Take a hint.



    09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


Closed Thread

Similar Threads

  1. WordPress Installation Tutorial
    By engel in forum Tutorials
    Replies: 55
    Last Post: 11-04-2011, 10:24 AM
  2. Wordpress Database Password Problem
    By roropheno in forum Free Hosting
    Replies: 8
    Last Post: 12-08-2007, 03:11 AM
  3. Remote Database Connection
    By ShoutX in forum Free Hosting
    Replies: 6
    Last Post: 10-04-2007, 10:22 PM
  4. Allow external connection to MySQL database
    By pedubreuil in forum Free Hosting
    Replies: 3
    Last Post: 10-04-2007, 11:17 AM
  5. PHP BB 2.0.16 Manual instalation
    By GFIV in forum Free Hosting
    Replies: 8
    Last Post: 09-14-2005, 12:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers