• Resolved seybold

    (@seybold)


    I’ve uploaded all the files, entered my database information (including authentication keys) but keep getting the ‘Error establishing a database connection’. And yes, MySQL is running at my hosting provider’s account as well as PHP. The hosting provider is not very cooperating though. Can someone help me out on this one?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Check your database details in the wp-config.php file.

    Thread Starter seybold

    (@seybold)

    I’ve checked it, found out the last line did’nt contain ?> as last line, but it still does’nt work. I’ve edited wp-config. php with notebook, could that have something to do with it?

    Don’t worry about the missing ?>. That’s deliberate. It’s the database details that you need to check – including the host name.

    Thread Starter seybold

    (@seybold)

    I’ve checked the database details and they’re right. So now I’m thinking something might be wrong with the setup of my folders because I still keep getting the 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 ldb401.han.de.siteprotect.com. This could mean your host’s database server is down.

    I’ve checked with my host (i.e. hostway) if my root directory is public_html and that’s correct. But public_html is a folder from a directory that was assigned to me, called 5221. Should I include that in the URL to install?

    You don’t need to include any paths in the url when installing in public_html other than your domain name followed by /wp-admin. Did you check with your hosts that ldb401.han.de.siteprotect.com is the correct database hostname?

    This doesn’t look like a regular hostname to me = ldb401.han.de.siteprotect.com = but then again…

    Did you try using the default “localhost” for your Database host?

    Having the same problem. I am on a MS server for this application, as I run Linux, never a problem. I want this on a domain that is on that server however. It seems to be working on the server, processing up to the point that It says cant contact the database server.

    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 sqlserver1.ourserverwehavetouse.com. 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?

    We have re-checked everything. I am so not fond of MS Servers! Give me my linux. Guess I can’t have it on this domain name, unless someone has a brilliant idea. Everything in wp-config.php is correct! I have installed a lot of these on my server.

    Thread Starter seybold

    (@seybold)

    @esmi: I’ve checked with my hosts if it was the correct name and they told me it is.

    @dianebourgue: no, I have’nt tried “localhost” for my databse host. So I’m going to try that first.

    @mountainh2o: if it’s some consolation to you: my server is running on Linux 🙁

    I’m getting back to you on this, guys. Just give me a day or two, cause I’m doing this in my spare time. Thanks for trying!

    Thread Starter seybold

    (@seybold)

    My hosts helped out. They installed WP again and after that the installation process went smoothly. Thanks for the feedback!

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

The topic ‘Error establishing a database connection (again)’ is closed to new replies.