Announcement

Collapse
No announcement yet.

How to run one database for main domain and subdomain

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to run one database for main domain and subdomain

    Hi all!

    i'm newbie and i can't setup one database for main domain and subdomain.
    i use MYSQL database.

    ex:
    main domain is abc.com (hostting A)
    subdomain is forum.abc.com (hostting B)

    please help me how to run one database for main domain and subdomain.

    Thanks!

  • #2
    Re: How to run one database for main domain and subdomain

    Can you explain what you are trying to do a little more clearly please?

    Do you mean the database is in the main domain but the users are in a subdomain?

    What errors are you getting?
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Re: How to run one database for main domain and subdomain

      basically - you setup Database1, and configure it accordingly.
      THen edit your application to look to that database for domain1

      for domain2, create database2 and setup application in domain2 to look at database2.

      Obviously, if you need the same data in both databases, or something like that, then ther's a whole lot more involved
      Please do show your appreciation to those who assist you by leaving Rep Point https://www.petri.com/forums/core/im.../icon_beer.gif

      Comment

      Working...
      X