Forums

[resolved] When to use define('DB_HOST', 'localhost'); (3 posts)

  1. therealrob
    Member
    Posted 1 year ago #

    Good Day,

    I just have a quick question...how do you know when to use define('DB_HOST', 'localhost'); over using an IP address (outside of when one doesn't work try the other and creating a local install)?

    I've had instances where I had 2 multisites installed on the same server where one needed the DB_HOST set to localhost in order to work and the other was fine with an IP address.

    Thanks in advance!!!

  2. Andrea_r
    team pirate
    Posted 1 year ago #

    It;s a hosting issue. It depends entirely where they keep their MySQL server.

    This is general SQL stuff not specific to multisite.

  3. therealrob
    Member
    Posted 1 year ago #

    Gotcha. Thanks a lot for the information!!

Topic Closed

This topic has been closed to new replies.

About this Topic