• awh

    (@awh)


    New install. Converting from Greymatter.
    I created a MySQL database on the Linux/Apache web server. Couldn’t get wp-admin/install-config.php to work. Kept getting permission errors. Made a wp-config.php manually. Now wp-admin/install.php says this:
    Error establishing a database connection! This probably means that the connection information in youn wp-config.php file is incorrect. Double check it and try again.
    * Are you sure you have the correct user/password?
    * Are you sure that you have typed the correct hostname?
    * Are you sure that the database server is running?
    To which I reply: yes, no, yes.
    My wp-config.php.
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘weblog1’); // The name of the database
    define(‘DB_USER’, ‘awhdb’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘*****************’); // …and password
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
    Nowhere have I typed in the correct hostname. The error message says to make sure to do this. I have not. The instructions don’t say anything about a hostname. Where would I type in the hostname? As for permissions, I have not changed anything.
    TIA for all help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter awh

    (@awh)

    The hostname “localhost” seems to be the right one.
    I made sure to upload all the files in ASCII mode. I am on a shared Linux server hosted by UCVHost.
    I created the MySQL database through the Plesk administrative interface on my server. At this point, I’m not sure I created database in the correct way. I don’t have telnet access so I can’t just try to connect to the MySQL database that way. I am talking to technical support with UCVHost about the database.

    Thread Starter awh

    (@awh)

    “define(‘DB_PASSWORD’, ‘*****************’);”
    Turns out my password was too long! Shortening it got it working.

    Moderator Matt Mullenweg

    (@matt)

    Never heard of that. Glad to hear you got it working.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘database error’ is closed to new replies.