Forums

[resolved] Other reasons for 'failure to est db connection'? (5 posts)

  1. mdion
    Member
    Posted 5 years ago #

    I'm trying to install WP on a university server. When trying to install I receive the "Error establishing a database connection" error.

    I have double-checked my database name, password, and localhost. I have also re-FTP'd all files as 'text' after reading another post in the forum. I get the same message.

    My database was created for me by the server admin, and I do not have privileges to create a new database. I also cannot view the privileges of the exsiting database/user.

    These are my questions:
    1. Could the error I'm getting be because I don't have the correct permissions for my database user?

    2. Which permission (exactly) do I need to ask my server admin to give me for my existing database (because I suspect they won't want to give me all permissions)?

    3. Is there any security reason why my server admin wouldn't want to give me that permission? [My IT office is particularly paranoid b/c I'm at a Tech school that is a target for hackers.]

    Thanks for any insight/advice

  2. Yosemite
    Member
    Posted 5 years ago #

    1) I don't think so, not to just 'connect'.

    2) No reason they can't give you 'all', if they can't it's certainly not for security reasons.

    3) No.

    Verify the exact spelling of your db name, username, password and the host name/IP-address.

  3. moshu
    Member
    Posted 5 years ago #

    On univ server it might be very well that the "localhost" is not true. Also, there are 2 (two) error messages, so knowing which one you get could help people around here to point you in the right direction.

  4. mdion
    Member
    Posted 5 years ago #

    Thanks for the quick responses.

    I am a complete dork....I totally misunderstood the edits for the wp-config! Duh.

    I was subbing my info for the first 1/2 of the command rather than the second half. [I did this...define('randomdbnameofmine', 'wordpress') RATHER THAN... define('DB_NAME', 'randomdbnameofmine').]

    Once I stopped long enough to think about what the code should be doing, I realized my mistake. Unfortunately, not before posting my query.

    Typical user error. But maybe others will see my correction and not make the same mistake/post.

    Thanks to both for your help. I'm going on to step 2 of installation now. :)

  5. Yosemite
    Member
    Posted 5 years ago #

    Cool, appreciate the 'conclusion'...

Topic Closed

This topic has been closed to new replies.

About this Topic