• I have created an SQL database through 1and1 hosting and this is the error I receive after entering the account data into the wp-config file and uploading it to the root of my domain. Any thoughts would be appreciated. Thanks

    Warning: Wrong parameter count for define() in /homepages/9/d283663997/htdocs/wordpress/wp-config.php on line 22

    Warning: Wrong parameter count for define() in /homepages/9/d283663997/htdocs/wordpress/wp-config.php on line 25

    Warning: Wrong parameter count for define() in /homepages/9/d283663997/htdocs/wordpress/wp-config.php on line 28

    Warning: Wrong parameter count for define() in /homepages/9/d283663997/htdocs/wordpress/wp-config.php on line 34

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • what it most likely means is you didn’t enter the info formatted correctly into the 4 lines for host, database name, user, and password. Perhaps you left out a comma or an apostrophe.

    This is the pattern they are supposed to look like – each one has two sections surrounded by apostrophes with a comma after the first one. Double check your entries against this pattern:

    define(‘DB_NAME’, ‘database_name_here’);

    define(‘DB_USER’, ‘username_here’);

    define(‘DB_PASSWORD’, ‘password_here’);

    define(‘DB_HOST’, ‘localhost’);

    Note that on 1and1 the database host isn’t “Localhost”. 1and1 use a separate database server so you need to enter the db server name that they supply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘using MySQL through 1and1 hosting, getting error’ is closed to new replies.