• johnedwardlow

    (@johnedwardlow)


    Hi. I am new to this and sort of dumb.

    I am getting the following error message:

    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?

    Here is what I know:

    My hostname is correct: localhost
    My username and password are correct

    Here is one possibility:

    After I downloaded Wrodpress onto my desktop I change the name of the folder. I then uploaded that folder (w/ the new wp-config info) onto my server.

    Stuck.

    Any help would be appreciated…

Viewing 13 replies - 1 through 13 (of 13 total)
  • MichaelH

    (@michaelh)

    Most times, there is something wrong specified in your wp-config.php file. Verify all four pieces of info-database name, user, password, and host.

    If you continue this thread, let us know your host.

    sannaberger

    (@sannaberger)

    i have the same problem.

    i already use wordpress for a different site, is that the problem?
    i have changed all the info to the correct one:

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘galeriexxxx’);

    /** MySQL database username */
    define(‘DB_USER’, ‘galeriexxxxx’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘xxxx’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’, ‘utf8’);

    this last one i havent changed because i dont know what it means.
    i have saved it and uploaded it with dreamweaver but still doesnt work. i get the same default problem page as above. please help.

    kind regards.

    MichaelH

    (@michaelh)

    What is your hosting company?

    sannaberger

    (@sannaberger)

    one.com

    MichaelH

    (@michaelh)

    One.com sent you a ‘code letter’ with information when you purchased your hosting plan. You will need the following information about your MySQL database:
    Database host/server:
    Database name:
    Database user:
    Database password:

    figaro

    (@figaro)

    The following video may help.

    http://educhalk.org/blog/?p=148

    sannaberger

    (@sannaberger)

    michael –
    i have entered exactly that information correctly and still it doesnt work im afraid..

    sannaberger

    (@sannaberger)

    figaro – thank you! but i have entered the correct information and it still does not work!
    kind regards

    sannaberger

    (@sannaberger)

    now i get this response:

    WordPress
    ‘.__(‘Already Installed’).’

    ‘.__(‘You appear to have already installed WordPress. To reinstall please clear your old database tables first.’).’
    ‘);} switch($step) { case 0: case 1: // in case people are directly linking to this display_header(); ?>

    ReadMe documentation at your leisure. Otherwise, just fill in the information below and you\’ll be on your way to using the most extendable and powerful personal publishing platform in the world.’), ‘../readme.html’); ?>

    error) ) wp_die($wpdb->error->get_error_message()); display_header(); // Fill in the data we gathered $weblog_title = isset($_POST[‘weblog_title’]) ? stripslashes($_POST[‘weblog_title’]) : ”; $admin_email = isset($_POST[‘admin_email’]) ? stripslashes($_POST[‘admin_email’]) : ”; $public = isset($_POST[‘blog_public’]) ? (int) $_POST[‘blog_public’] : 0; // check e-mail address if (empty($admin_email)) { // TODO: poka-yoke die(‘

    ‘.__(“ERROR: you must provide an e-mail address.”).’
    ‘); } else if (!is_email($admin_email)) { // TODO: poka-yoke die(‘

    ‘.__(‘ERROR: that isn’t a valid e-mail address. E-mail addresses look like: username@example.com’).’
    ‘); } $wpdb->show_errors(); $result = wp_install($weblog_title, ‘admin’, $admin_email, $public); extract($result, EXTR_SKIP); ?>

    admin

    ‘.__(‘Note that password carefully! It is a random password that was generated just for you.’).”; ?>

    figaro

    (@figaro)

    Okay, if you just want a new blog, then open the wp-config.php file and find the database prefix value…it will be about 3/4 of the way down in that file and will look like this:

    $table_prefix = ‘wp_’;

    Just add a 1 after wp so it looks like this:

    $table_prefix = ‘wp1_’;

    Then visit your blog address and you will be prompted to set-up a new blog.

    sannaberger

    (@sannaberger)

    figaro – thats exactly what i want, thank you!
    before i do that i just wanna make sure that nothing will happen to my already existing wordpress blog that i have connected to a different domain?!

    thank you very much.

    figaro

    (@figaro)

    Doing this is not going to impact any other blog on your server. You will just set-up a new set of tables for this blog.

    sannaberger

    (@sannaberger)

    i changed it but still get the same message im afraid….

    the “WordPress
    ‘.__(‘Already Installed’).'”…. message.

    ah, driving me insane now!

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Error Establishing Database Connection’ is closed to new replies.