• Hello all,

    Trying to install WP on 1and1. I get the following error message.

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

    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.

    Do I set the DB_HOST to localhost for 1and1? Searched through the forum but couldn’t find an answer.

Viewing 3 replies - 16 through 18 (of 18 total)
  • I haven’t had any problems with 1and1 using WP.

    Same here. Works great on 1and1 Developer account IF you understand the MySQL setup procedure.

    I’m attempting to install WordPress version 2.01 on 1and1. I’ve installed ver. 1.5 with no problem. When I go to https://avianflufiles.com/wp-install/wp-admin/install.php I get this error message:

    WordPress database error: [Table ‘db155479498.wp_options’ doesn’t exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘home’ LIMIT 1

    WordPress database error: [Table ‘db155479498.wp_options’ doesn’t exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘hack_file’ LIMIT 1

    WordPress database error: [Table ‘db155479498.wp_options’ doesn’t exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘active_plugins’ LIMIT 1

    WordPress database error: [Table ‘db155479498.wp_options’ doesn’t exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘permalink_structure’ LIMIT 1

    WordPress database error: [Table ‘db155479498.wp_options’ doesn’t exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘category_base’ LIMIT 1

    WordPress database error: [Table ‘db155479498.wp_options’ doesn’t exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘template’ LIMIT 1

    WordPress database error: [Table ‘db155479498.wp_options’ doesn’t exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘template’ LIMIT 1

    WordPress database error: [Table ‘db155479498.wp_options’ doesn’t exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘rewrite_rules’ LIMIT 1

    WordPress database error: [Table ‘db155479498.wp_options’ doesn’t exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘rewrite_rules’ LIMIT 1

    WordPress database error: [Table ‘db155479498.wp_options’ doesn’t exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘siteurl’ LIMIT 1

    WordPress database error: [Table ‘db155479498.wp_options’ doesn’t exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘html_type’ LIMIT 1

    WordPress database error: [Table ‘db155479498.wp_options’ doesn’t exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘blog_charset’ LIMIT 1

    WordPress database error: [Table ‘db155479498.wp_options’ doesn’t exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘posts_per_page’ LIMIT 1

    WordPress database error: [Table ‘db155479498.wp_options’ doesn’t exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘what_to_show’ LIMIT 1

    WordPress database error: [Table ‘db155479498.wp_options’ doesn’t exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘gmt_offset’ LIMIT 1

    WordPress database error: [Table ‘db155479498.wp_options’ doesn’t exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘gmt_offset’ LIMIT 1

    WordPress database error: [Table ‘db155479498.wp_posts’ doesn’t exist]
    SELECT DISTINCT * FROM wp_posts WHERE 1=1 AND post_date_gmt <= ‘2006-03-18 16:49:59’ AND (post_status = “publish”) AND post_status != “attachment” GROUP BY wp_posts.ID ORDER BY post_date DESC

    WordPress database error: [Table ‘db155479498.wp_options’ doesn’t exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘gzipcompression’ LIMIT 1

    Here’s my wp-config.php:

    <?php
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘db155479498’); // The name of the database
    define(‘DB_USER’, ‘dbo155479498’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘XXXXXX’); // …and password
    define(‘DB_HOST’, ‘db305.perfora.net’); // 99% chance you won’t need to change this value

    The root directory on the website is:

    Destination As a home directory : /avianflufiles/index.php

    I’m at a loss. Can anyone help?

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘WordPress and 1and1 – Localhost for the DB?’ is closed to new replies.