1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

5 sites on same database?

Discussion in 'Databases' started by Shile, Oct 3, 2005.

  1. #1
    I have 5 sites with name of its own..I use one apartment search script...and I just want that all of those sites read from same database!
    So I just must replace $db_server = "localhost"; with something else....i dont know what!
    SEMrush
    if someone knows please post..
    TNX
     
    Shile, Oct 3, 2005 IP
    SEMrush
  2. imaginemn

    imaginemn Peon

    Messages:
    20
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Have you tried using the IP address where the database is residing on?
     
    imaginemn, Oct 3, 2005 IP
  3. WhatiFind

    WhatiFind offline

    Messages:
    1,789
    Likes Received:
    257
    Best Answers:
    0
    Trophy Points:
    180
    #3
    Just use the url given by the hostingparty. For instance: mysql41.yourhosting.com
     
    WhatiFind, Oct 3, 2005 IP
  4. MiamiHost

    MiamiHost Peon

    Messages:
    238
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    are these sites on the same server?
     
    MiamiHost, Oct 4, 2005 IP
  5. Shile

    Shile Guest

    Messages:
    9
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes...I have 5GB reseller package...
     
    Shile, Oct 4, 2005 IP
  6. MiamiHost

    MiamiHost Peon

    Messages:
    238
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #6
    you set up the database for one site

    Then for each script use on each site:

    $db_server = "localhost";
    $dbname= 'database_name';
    $db_user = 'database_user';
    $dbpass = 'database_pass';

    Those settings should be the same for all sites and only one database should exist.
     
    MiamiHost, Oct 4, 2005 IP