Forums

What it's the correct route for the DB? (5 posts)

  1. Anonymous
    Unregistered
    Posted 3 years ago #

    Hi you all guys
    I'm just new to this and I'm configuring WP in my host server.
    I've this trouble setting the route in my wp-config.php
    By default it says let the 'localhost', but what if i'm using http://www.mydomain/blog for upload my new blog?
    Thus, i've set up to '/blog' but I'm not a developer so my PHP knowlegde is really poor.
    I'm still seeing an error page :(
    Please, if you know how can I fix this give me a help.
    Thanks in advance!
    Kati

  2. Samuel B
    moderator
    Posted 3 years ago #

    The DB_HOST is not your path to your blog but rather the connection for the database. Most hosts use localhost but some do not. It should tell you somewhere where your databases are listed.
    If you can't find it contact your host to be sure.

  3. mayooresan
    Member
    Posted 3 years ago #

    most of the time itz Localhost, but some time it may be a IP address. Check your database in Control Panel. There you'll find an IP address. Use it for localhost. It works for me! :D

  4. Samuel B
    moderator
    Posted 3 years ago #

    Do not use ip addresses unless specifically told to do so by host. If they change ip of mysql server your blog will no longer work.

  5. @mercime
    Member
    Posted 3 years ago #

    DB_HOST with webhost looks something like this
    **mysql**.nameofwebhostornot.com
    Some have numbers and text before or after the mysql
    Good luck.

Topic Closed

This topic has been closed to new replies.

About this Topic