Support » Installing WordPress » what should the DB HOST be?

  • Hi,

    I hope somebody can help me, I’m a bit frustrated with this installation thing…

    I uploaded the whole WordPress folder on my website and changed the wp-config.php. My website is abc-impact.com, hosted by Bravenet.com. What should my DB_HOST be?
    This is what I set it at right now:
    define(‘DB_HOST’, ‘http://www.abc-impact.com’); // 99% chance you won’t need to change this value >>>

    I keep getting this message when I click on the readme.html from my site.
    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 abc-impact.com. This could mean your host’s database server is down.

    Thanks for your help.

    Sylvia

Viewing 15 replies - 1 through 15 (of 23 total)
  • In most cases the value is localhost but you’ll want to confirm that with your hosting provider.

    Like wp-config says, 99% you shouldn’t change the value from localhost.
    Have you tried w/o changing that value ? I also read that bravenet add random numbers at the DBNAME you pick.

    phototoart,

    What should my DB_HOST be?

    This is something your hosting company should tell you. There is no single setting that fits every setup. It could be localhost, or it could be an IP address (something like 10.1.2.3), or it could be a server name (something as simple as mysql or as elaborate dbhost123.yourprovider.net). So look in your hosting company’s help files. Failing that, call support.

    This is what I set it at right now:
    define(‘DB_HOST’, ‘http://www.abc-impact.com’);

    This is definitely incorrect. Whatever else you may do, the http:// prefix does not belong in a DB server name…

    Hello,

    Thanks for your suggestions. I did try with “localhost” but this is the message I get:
    “”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. This could mean your host’s database server is down.””

    One question. Is it necessary to go through these steps in order to install plug-ins, or is there another way?

    Thanks!!!

    Sylvia

    Sylvia,

    I did try with “localhost”

    Why? What makes you think localhost would work for you? Again, start with your hosting help/documentation/support. Blindly trying every imaginable option (no matter how common) will get you nowhere.

    Is it necessary to go through these steps in order to install plug-ins, or is there another way?

    Plugins are called plugins because they plug into things. WordPress plugins plug into an operational instance of WordPress. If you don’t have one (and you don’t), there is no plug for a plugin…

    Bravenet uses something similar to
    sql12.domainname.com

    NC,

    What makes you think localhost would work for you?

    Because it says that 99% of the time you don’t have to change that…

    samboll,
    Thanks for your answer, unfortunately that doesn’t help me much. I know 0 about sql.

    Does anybody know how to install WordPress on Bravenet? I checked with Bravenet but they don’t deal with this kind of issue at all.

    Thanks again,

    Sylvia

    OK, I managed to get in, but I get this message:

    Parse error: syntax error, unexpected ‘.’ in /misc/32/255/726/744/6/user/web/abc-impact.com/wordpress/wp-includes/user.php on line 244

    My problem is that I don’t know how to solve this problem, as I don’t have any file called “wp-includes”.

    Thanks for your help,

    Sylvia

    @phototoart

    What samboll told you is EXTREMELY helpful. He may not know the exact address but he gave you a start. Since you don’t want to accept that, then I guess you’re just going to have to put some effort into it and do some research on your own. Go to bravenet, find their help/support area, and look around. And I’ll say this for the millionth time… GOOGLE IS YOUR FRIEND! Search HERE at the WP forums. This is a relatively easy thing to find out. Honestly, I could find out for you and have the answer in a few minutes but I’m not going to because it pisses me off when #1. people ask for help here and then refuse the help they are given and #2. when people ask questions they could have easily found for themselves. If you want to own and run a domain, you’re going to have to learn these things anyway, so good luck.

    You got in where? You installed? Where/when does this error appear?

    EDIT: wp-includes isn’t a file it’s a folder and if you don’t have it, then you don’t have all the files uploaded. But it HAS to be uploaded or it couldn’t be showing an error for a file within it.

    thisisedie
    Thanks for your messages but there was no need to get rude…
    I’ve owned my own domains for years now but this kind of knowledge is new to me.

    Anyway, I got it working now. The reason I got this message:
    Parse error: syntax error, unexpected ‘.’ in /misc/32/255/726/744/6/user/web/abc-impact.com/wordpress/wp-includes/user.php on line 244
    is because I had moved the whole folder to WordPress instead of WordPress-6.2.1/Wordpress.

    My advice to people having this message: Do not change the structure of WordPress. 🙂 It seems obvious after but it didn’t at the time I installed it on my site.

    Thanks to all the people who’ve helped me.

    I’m putting together a quick tutorial for Bravenet users who want to use a WordPress blog. It’ll be available on my blog as soon as I finish it.

    Sylvia

    My intention wasn’t to be rude but to voice my displeasure at people who ask for help and then refuse the advice given when it’s correct advice.

    The reason I got this message:
    Parse error: syntax error, unexpected ‘.’ in /misc/32/255/726/744/6/user/web/abc-impact.com/wordpress/wp-includes/user.php on line 244
    is because I had moved the whole folder to WordPress instead of WordPress-6.2.1/Wordpress.

    My advice to people having this message: Do not change the structure of WordPress. 🙂

    True, you shouldn’t change the structure of the actual WP files and directories themselves, but WordPress can be installed in a folder named anything. If I understand you correctly then your blog should be located at http://abc-impact.com/Wordpress-6.2.1/Wordpress? But there’s nothing there?

    OK, no problem, thisisedie 🙂

    The URL is http://abc-impact.com/wordpress-2.6.1/wordpress/
    and it’s all up and running.

    Sylvia

    Great, I’m glad it’s working but so that anyone coming across this thread won’t be misled, again, you DON’T have to install the way the WP package comes, IE – wordpress-2.6.1/wordpress/. You can install it in a directory named whatever you want it to be. For example you could have done it: http://abc-impact.com/blog/ (which in my opinion would have been more aesthetically pleasing).

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘what should the DB HOST be?’ is closed to new replies.