WordPress.org

Ready to get started?Download WordPress

Forums

Error establishing a database connection (7 posts)

  1. walkerboh
    Member
    Posted 6 years ago #

    Recently I started using some webspace my friend has. He uses BlueHost. I FTPed all the files onto my domain, he imported my old database, and gave me the db name, and a username and pass to use for it. I went to install wordpress, and I keep getting an Error establishing a database connection. I'm pretty sure its not the database name, username, or password causing the problem. but I could be wrong. I think it might be the location of the database. Does anyone know how to resolve this problem?

  2. jamesspratt
    Member
    Posted 6 years ago #

    Bump - me too, anyone?

  3. tugacari
    Member
    Posted 6 years ago #

    Check wp-settings.php to see if they match the db that you're created.

  4. whooami
    Member
    Posted 6 years ago #

    Check wp-settings.php to see if they match the db that you're created.

    wp-settings.php doesnt contain ANY databse info.

  5. tugacari
    Member
    Posted 6 years ago #

    you're right, sorry about that

    check wp-config.php

    whooami instead of just correcting me you should had provided the correct file...

  6. searchen
    Member
    Posted 6 years ago #

    Having similar issue... this looks like a wider problem.

  7. BernardBorealis
    Member
    Posted 6 years ago #

    Many hosts prefix every database and users with a pre-assigned prefix. Make sure you have that prefix right. example: prefix12_dbname prefix12_dbuser And then of course you'll have your database password.

Topic Closed

This topic has been closed to new replies.

About this Topic