• Alright guys, I am in desperate need for help.

    Okay:

    Today, I installed WordPress into my blog directory, read the readme, and configured the wp_config.php file. I saw I needed to set up a MySQL database, which isn’t a problem because it was fairly easy.

    So, setting up said database, I had to use the prefix bonekhan_(text; I chose to use ‘blog’ after the underscore). Then, they asked for a password, which I inputted; no problem there either. A notice on the bottom of setting up the database said this: “Note: Database name is the same as the database username”

    So, in wp_config this is what I put at the top 4 lines:

    define(‘DB_NAME’, ‘bonekhan_blog’);
    define(‘DB_USER’, ‘bonekhan_blog’);
    define(‘DB_PASSWORD’, ‘*****’); //Omitted password for security purposes.
    define(‘DB_HOST’, ‘localhost’);

    It still gets a Database Error, when trying to go to install.php. What am I doing wrong?!

    Any help in this matter would be greatly appreciated.

    Notes:

    I have all of wordpress installed
    I have set up wordpress on my host a long time ago, had to delete it and now I’m reinstalling

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter bonekhan7

    (@bonekhan7)

    Alrighty guys, I realize the problem.

    The database host is NOT localhost. The “99% chance that you don’t need to change this value” note? Lets just say, I feel very special.

    tag as solved …

    I am getting this yesterday…its been like this till now..hosted by Yahoo

    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 mysql. 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.

    Your post is ambiguous — is this a fresh install?

    …and if it worked previously, AND you havent changed anything its prolly best that you contact Yahoo.

    have you changed anything recently?
    have you contacted Yahoo?

    I have the same problem. I’m using hostean.net. I’m as desperate as bonekhan7. The password and username I’m using are very correct! This is unclear for me. Is the database host NOT localhost? In most cases it is, it’s said in the installation manual. The manual corrected this problem by reseting the password. But I don’t know how I’m going to this. The description of the solution is not in accordance!

    Are there any wise suggestions on this topic??

    Of course there was someting with my wp-config.php. My mistake! MAKE SURE THAT EVERYTHING IS CORRECT!

    “MAKE SURE THAT EVERYTHING IS CORRECT!”
    Same problem and I have no idea what I can check esle…

    https://juga.awardspace.com/

    What are you using for hostname? If localhost, try using either the IP or the hostname of the database server.

    Is the database actually running?

    What version of MySQL is on the box in question?

    Are you 100% sure everything is correct?

    Does the MySQL user account in question have access to the database?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error establishing a database connection’ is closed to new replies.