Forums

[resolved] Error establishing a database connection (12 posts)

  1. Arabrab
    Member
    Posted 2 years ago #

    It's really weird: I can enter my database, so I know it's up and running, but when I try to make the WPinstall complete I just get the message: Error establishing a database connection. Everything I've put in the right place: I've checked and rechecked so many times I can't even begin to count them anymore.

    See for youself: http://www.bruddstyker.nl/
    http://www.bruddstyker.nl/wp-admin/install.php

  2. 4k
    Member
    Posted 2 years ago #

    make sure there are no spaces between the single quotes and your information

    so

    'password' make sure it isn't ' password'

  3. Arabrab
    Member
    Posted 2 years ago #

    There are no spaces between them: I've checked over and over again.

  4. klklaser
    Member
    Posted 2 years ago #

    We used to get that message occasionally when the server went down, our host usually had it back up within ten minutes or so. Hasn't happened in a long time.

    If it hasn't run prior, have you checked the user permission?

  5. Arabrab
    Member
    Posted 2 years ago #

    It worked fine until yesterday: then it all went wrong. My log just went crazy, WP didn't work correctly anymore, so I decided to install WP again. made a backup of the database and tried to install everything new. And this is the result.

    I've removed everything through the FTP-server now (complete WP), but the strange thing is now, that I still get the WP-message. And WP isn't even on the server anymore.

  6. klklaser
    Member
    Posted 2 years ago #

    You've deleted all the files? The function that appears to create that error page is in /wp-includes/ and the file name is wp-db.php, the function name is wpdb()

    Anyway, it looks to me like you still have at least some WP files there.

    If it was me, I'd put all the files back and contact your host.

  7. Arabrab
    Member
    Posted 2 years ago #

    It really looks like everything is gone: I've looked with three different FTP-programs. I've emailed my host, so hopefully I'll get some answers, because this isn't funny at all.

  8. poetics5
    Member
    Posted 2 years ago #

    hi i'm running to a similar problem, sorry can't provide link as it's intranet.

    i have mysql running at apache.sidneyblack.com - intranet.
    and wouldpress is running from the server at apache.sidneyblack.com under a development vhost: blog.iamfake.com

    i can access the db server fine both remotely and on the local server with the credentials given to wordpress, but i continue to get a wordpress can't connect error. i've done OLD_PASSWORD on the password, and given both local and remote access to the wordpress user. still no dice.

  9. poetics5
    Member
    Posted 2 years ago #

    ok i looked at my firewall and its contacting mysql and allowed to attempt connection. this is just weird. I disabled the firewall thinking maybe it has blocking somehow - same result.

    I'm running apache 2.2.3 with openssl 0.9,rewrite support, php 4.4.4, and mysql 5. apache has 2 domains setup for development, 1 domain redirection to port 81, and a master domain for the web server. all this is running on windows 2003 server r2 in a windows domain, firewalled, internal dns server, and only available via intranet.

    i'm recieving the same error as arabrab. sqlyog, mysql admin, etc have no issues connecting to mysql. is there something i can do?

    this is kinda time sensitive since i'm supposed to doing a beta view for a client. their a myspace youtube niche market hybrid and i'm recommending they go with a modified wordpress for user profiles /blogs.

  10. samboll
    moderator
    Posted 2 years ago #

    Windows server? Sorry to hear that.
    Do a search in the codex on windows server. There are several work arounds.

  11. poetics5
    Member
    Posted 2 years ago #

    Hi samboll yes my development machine on my intranet is windows, but the live environment at least for this will be linux / lighttpd. they use windows for the main site - i know , but it's out of my hands.

    that said i hope this may help someone else. i know alot of you are running via shared hosts, etc. well i'm able to watch the connections and see the data all real time. heres what i've found:

    double check your spaces
    apprently (at least my case) wp was connecting, something weird happened in the process.
    for some reason strong passwords can't be used when using wp to my server (no clue)
    change your password to 'password'
    the install then worked for me, i'll attempt converting to strong passcode once i'm done install.

    hope this helps.

  12. Arabrab
    Member
    Posted 2 years ago #

    So this is weird!

    I've removed all the WP-files through my FTP-programm (and checked it with two other programs). And still the message remains the same: no connection is possible.
    The people at the servicedesk of my hostingcompany see a wp-config.php file that's old and I've removed. But it's the only thing they can see (and the old installation of WP which I removed.......at least I thought I removed). I can't figure out what happened here. I just hope the hostingcompany can solve it.

Topic Closed

This topic has been closed to new replies.

About this Topic