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.

Connection with Database:confused:

Discussion in 'Database Discussions' started by ajitharavindan, Jan 19, 2008.

  1. ajitharavindan

    ajitharavindan Registered

    Joined:
    Jan 19, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    how to setup a connection to the remote database..
    what is the format...
    for example...
    i have created a database with the name CatchQatar and our domain name is www.catchqatar.com
    how can we specify it in the java connection string

    there is an option called "ADD HOST" in side MySQL in cpanel.. what value should be added to that.
    :confused:
     
    #1 ajitharavindan, Jan 19, 2008
    Last edited: Jan 19, 2008
  2. Vinayak

    Vinayak Well-Known Member

    Joined:
    Jun 27, 2003
    Messages:
    267
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Bharat
    cPanel Access Level:
    Root Administrator
    If the database catchqatar is on the same server where catchqatar.com is hosted you are not required to add Remote host. You just need to have localhost in your connection string.

    If the database catchqatar is on some different server than where catchqatar.com is hosted you are required to first add Remote Host in the database section (if that DB is on a cPanel server) on the DB server. You then need to have DB server IP in your connection string.
     
Loading...

Share This Page