Support » Installing WordPress » 1and1 Install, “Error establishing a database connection” while trying to instal

  • Tom S


    Hello Folks,

    I’m trying to do a “manual” install of WordPress on one of my hosted on 1and1, Windows. I’ve followed all of the steps outlined in 1and1 support page and on other sites.

    I’ve tried to do the install twice. The first time I finally got through the installation steps, but when I tried to build a page, WP told me that it didn’t have permissions to write to the database. (I had installed WP in a subdirectory.)

    The second time I got the following message, “Error establishing a database connection” and can’t get past that. This time I installed WP in a directory at the root level of my 1and1 domain space.

    In both cases I pointed the domain name to the appropriate directory.

    I’m at my wits end. And 1and1’s policy is that they won’t support manual installations, even though they have a support page that gives you the instructions to install WP, even including some nice screen shots.

    Please help. The page I’ve linked to above,, contains the config file and a screen shot of the error message.

    Tom Sawyer

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p


    “Error establishing a database connection” means that there is a problem with the connection to your database
    – a problem with the credentials stored in the wp-config.php file not matching what mysql expects.
    – Try reviewing the following codex for some guidance:
    – Also review this tutorial:

    Tom S



    I’ll give it a try.
    I had a slight problem with my web page. It wouldn’t show the config file. It will now. You can look at it, but I’m sure I have the correct credentials, but I’ll check them against the codex you referred me to. Thanks,


    Moderator t-p




    I noticed an extra character in the database username compared to almost the same string in the database name itself. Double check those credentials but…

    You’ve made that public by posting them so you’ll need to change those and the password once you get it working.

    Tom S


    Hello again,

    Thank you t-p. I will be reviewing the Codex’s you referred me to. Thank you.

    JNash – you are right, there is an extra character in the database username. My hosting provider, 1and1, provides a control panel for setting up mySQL databases and it creates the username, hostname, user password and database name. It’s creating conventions puts that extra character in. This was a good catch, but the data in the config file is correct.

    JNash – You are correct, I need to change credentials once I get everything working. FYI, this is my testing / learning / training myself database. I won’t be using it for production for awhile and when I do, everything will be different and the testing stuff will be deleted.

    To all – following the Codex t-p referred me to, I did discover an error in the config file. The ?> line at the end of the file was missing. That’s the way the sample that was sent is. I added that line, but it didn’t change anything.

    I’m going to start over, deleting everything, downloading WordPress again and installing from scratch. It’s a lot of work, so I won’t be back on the forum for some hours, or a day.

    Thanks again,


Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘1and1 Install, “Error establishing a database connection” while trying to instal’ is closed to new replies.