Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jan 2003
    Location
    England
    Posts
    72

    Default Database Connection Question

    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. #2
    Member
    Join Date
    Aug 2002
    Posts
    1,052

    Default

    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:

    The rest of those who have gone before us cannot steady the unrest of those to follow.

Similar Threads & Tags
Similar threads

  1. Database connection fails, ask for help
    By handui in forum New User Questions
    Replies: 2
    Last Post: 06-28-2011, 06:45 AM
  2. Magento Database connection
    By tostrye in forum New User Questions
    Replies: 3
    Last Post: 03-09-2011, 08:52 AM
  3. Database connection help
    By William_Wallace in forum Database Discussions
    Replies: 1
    Last Post: 02-11-2009, 01:49 PM
  4. Database Connection question
    By calexander in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-17-2005, 08:53 AM
  5. Database connection error
    By shady in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-12-2003, 01:16 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube