The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Database Connection Question

Discussion in 'General Discussion' started by N9ne, Aug 28, 2003.

  1. N9ne

    N9ne Well-Known Member

    Joined:
    Jan 7, 2003
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    England
    How can I connect to the database of another domain name that is on the same server?

    For example, say I have a file testdomain.com/test.php and this file connects to a database that is on abcdomain.com...how can I connect to that database? Is there something I can do so the server will allow cross-database connections?

    cPanel.net Support Ticket Number:
     
  2. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    Well it really shouldn't be too difficult. Simply input localhost for the database server, enter the database name & the username/password for the database. If you have all the correct information, it should connect no problem.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page