• amanamission

    (@amanamission)


    I have a domain that already has a WordPress blog installation in a directory.

    I am changing the site to wordpress and I would like to keep the old blog as it is.

    I opened a new MySql database and edited the wp-config.php file accordingly.

    This is the message that displays when I go to run install.php

    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 MYSQLHOST. 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?

    I checked a few times to make sure that the database name, username and password are correct. They are.

    I created a new database for this blog, but maybe having it on the same domain as another blog is causing an error?

    from wp-config.php –
    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = ‘wp_’; // Only numbers, letters, and underscores please!

    Do I need to give it a table prefix?

    I thought that making a new database & new user would clear all that up…
    yet still there is an error establishing a database connection
    ??
    Please Help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Jeremy Clark

    (@jeremyclark13)

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

    Is your database on a computer called MYSQLHOST if not and it’s on the same server as the webserver then that needs to be changed back to localhost.

    Thread Starter amanamission

    (@amanamission)

    I first tried it with localhost and after that didn’t work, I reexamined my MySql database info and saw that it says
    Host: MYSQLHOST

    Needless to say, that didn’t work either…

    and for the record, I also re-copy/pasted my database name, username & password to make sure that there wasn’t a typo or extra space or anything. Still showing error in connecting.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Database error on install’ is closed to new replies.