WordPress.org

Ready to get started?Download WordPress

Forums

what should the DB HOST be? (24 posts)

  1. phototoart
    Member
    Posted 5 years ago #

    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

  2. Len
    Member
    Posted 5 years ago #

    In most cases the value is localhost but you'll want to confirm that with your hosting provider.

  3. Jowy
    Member
    Posted 5 years ago #

    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.

  4. NC@WP
    Member
    Posted 5 years ago #

    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...

  5. phototoart
    Member
    Posted 5 years ago #

    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

  6. NC@WP
    Member
    Posted 5 years ago #

    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...

  7. Samuel B
    moderator
    Posted 5 years ago #

    Bravenet uses something similar to
    sql12.domainname.com

  8. phototoart
    Member
    Posted 5 years ago #

    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

  9. phototoart
    Member
    Posted 5 years ago #

    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

  10. thisisedie
    Member
    Posted 5 years ago #

    @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.

  11. thisisedie
    Member
    Posted 5 years ago #

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

  12. thisisedie
    Member
    Posted 5 years ago #

    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.

  13. phototoart
    Member
    Posted 5 years ago #

    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

  14. thisisedie
    Member
    Posted 5 years ago #

    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?

  15. phototoart
    Member
    Posted 5 years ago #

    OK, no problem, thisisedie :)

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

    Sylvia

  16. thisisedie
    Member
    Posted 5 years ago #

    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).

  17. phototoart
    Member
    Posted 5 years ago #

    You're right, it would be better, thisisedie, but how do you do that? I couldn't log on when I moved the folders around. What file has to be edited then?
    Thanks for your advice/help.
    Sylvia

  18. thisisedie
    Member
    Posted 5 years ago #

    You can't just move the folders around once you've installed because the database thinks the blog is located in the location you installed from, that's where you ran into trouble. You would make a directory called "blog", upload all the WP files to that directory, and install by going to http://abc-impact.com/blog/wp-admin/install.php.

  19. phototoart
    Member
    Posted 5 years ago #

    Thanks, thisisedie.
    I did try but I'm afraid I made a total mess. I removed the whole blog, reinstalled it, but when I try to login, it keeps trying to go to
    http://abc-impact.com/Blog/wordpress/wp-login.php
    instead of
    http://abc-impact.com/wordpress-2.6.1/wordpress/wp-login.php
    I'm quite stuck now, so I would appreciate any help!
    Thanks.
    Sylvia

  20. thisisedie
    Member
    Posted 5 years ago #

    Did you either backup your database and drop the tables or create a new database for the new install? Where did you try to install it to? This address http://abc-impact.com/Blog/wordpress/? Again, you don't need to nest WP. You can just install in http://abc-impact.com/blog/.

    1. Back up your database (if there are posts you want to save)
    2. Drop the tables from your current database
    3. Create a folder in the root directory of your server called "blog"
    4. Make sure the correct database info is in wp-config.php
    5. Upload all the files in the wordpress folder to that directory. Just the files within, not the folder itself
    6. Go to http://abc-impact.com/blog/wp-admin/install.php and install.
    7. Restore your database from the back up if you chose to do that.
    8. Done.

  21. phototoart
    Member
    Posted 5 years ago #

    Hi again, thisisedie.
    I don't know how to "drop the tables of the current database".
    I can't find out how, and I can't login anymore...
    I even removed the whole thing, copied a fresh copy of WordPress with the proper config.php, it still doesn't work.
    Thanks again for your help.
    Sylvia

  22. thisisedie
    Member
    Posted 5 years ago #

    You login to phpmyadmin through the control panel of your hosting service, select the WP database, and drop the tables. I'm sure you could Google an explanation how to do it. Or you could just create a new database. Whos your host?

  23. phototoart
    Member
    Posted 5 years ago #

    OK, this works. I just didn't know what "drop the tables" means. I'm not English speaking so this term was not familiar to me.
    Thank you so much for your help, thisisedie!!! :)
    Sylvia

  24. phototoart
    Member
    Posted 5 years ago #

    By the way, here are the steps explaining how to install WordPress into another folder:
    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    Sylvia

Topic Closed

This topic has been closed to new replies.

About this Topic