WordPress.org

Ready to get started?Download WordPress

Forums

Good ol' step 5 (20 posts)

  1. d2216
    Member
    Posted 8 years ago #

    I'm new to WP and having some problems. I've installed, uploaded everything etc., but am still getting the dreaded:
    "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 localhost.
    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."
    Error message. If you have any suggestions on how to fix it. I'm opperating off of a server at school, I would be eternally grateful. Thanks.

  2. ColdForged
    Member
    Posted 8 years ago #

    Oddly, the suggestions that you just listed are the right route to go. Verify you have all of the things correct.

  3. Erwin
    Member
    Posted 8 years ago #

    The errormessage is pretty clear on what to do, so did you check all that?

  4. d2216
    Member
    Posted 8 years ago #

    Yepo schepo. Stupid question. Are the user name and password the same ones that I use to log onto here?

  5. ColdForged
    Member
    Posted 8 years ago #

    No. The username and password that you put into the wp-config.php file are the appropriate ones for your database. The username and password to login to your WordPress installation are generally "admin" and a randomly generated one that is provided to you upon installation.

  6. d2216
    Member
    Posted 8 years ago #

    where is this allegid password that was provided to me upon installation?

  7. ColdForged
    Member
    Posted 8 years ago #

    Following installation it was displayed on the page as follows:

    Now you can log in with the login
    "admin" and password "<?php echo $random_password; ?>".
    Note that password carefully! It is a random
    password that was generated just for you. If you lose it, you
    will have to delete the tables from the database yourself, and re-install WordPress.

    and emailed to the administrator email account if given correctly.

  8. moshu
    Member
    Posted 8 years ago #

    But prior to that you need the username and password for your database which was either provided by your host or created by you when setting up the database for WP.

  9. d2216
    Member
    Posted 8 years ago #

    Um...yeah...apparently this thing hates me, because that still doesn't work.

  10. ColdForged
    Member
    Posted 8 years ago #

    What still doesn't work? That link is not your login link, it's a representative example.

  11. d2216
    Member
    Posted 8 years ago #

    K. I'm not really using a host I'm using Truman State University server. Where are you finding this password...i must be as dumb as a rock. Sorry.

  12. ColdForged
    Member
    Posted 8 years ago #

    Start at the top. Where did you get your database parameters?

  13. d2216
    Member
    Posted 8 years ago #

    database parameters? I'm a designer trying to do coding, i don't know what parameters...all i know is how to log onto our server and upload pages and stuff is that the parameters that you are refering to?

  14. moshu
    Member
    Posted 8 years ago #

    Maybe you don't even have a database? In that case WP won't work :)

  15. d2216
    Member
    Posted 8 years ago #

    How do I find this out?

  16. ColdForged
    Member
    Posted 8 years ago #

    There's our issue. You need a MySQL database set up by whoever administers that university server. They need to set it up, then give you a name of the database, the server that it's on, the username for the database and the password. You then fill that information into the wp-config.php file. Then you can start installing WordPress.

  17. moshu
    Member
    Posted 8 years ago #

  18. d2216
    Member
    Posted 8 years ago #

    Ahhhhh...its all making sense now...I was wondering what I was doing wrong. Just got off the phone with the geniuses at ITS, apparently I DO NOT have an SQL and it will take a week to request one. I really appreciate your help and thank you for being so patient with this novice!:)

  19. ColdForged
    Member
    Posted 8 years ago #

    No worries, come back when they get your database setup.

  20. archshrk
    Member
    Posted 8 years ago #

    When you get that info for your database you'll change the settings in wp-config.php. Change the SECOND value shown here called "wordpress" to the database's name...
    // ** MySQL settings ** //define('DB_NAME', 'wordpress')
    Do the same for all four values (wordpress, username, password and localhost) Using the correct values for each.

    My first attempt I changed DB_NAME to my value and of course it didn't work.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.