WordPress.org

Forums

database error (4 posts)

  1. awh
    Member
    Posted 12 years ago #

    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.

  2. awh
    Member
    Posted 12 years ago #

    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.

  3. awh
    Member
    Posted 12 years ago #

    "define('DB_PASSWORD', '*****************');"
    Turns out my password was too long! Shortening it got it working.

  4. Matt Mullenweg
    Troublemaker
    Posted 12 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.