Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default Help Quick Please

    Hey

    ok... can someone please tell me if you can run an SQL database on another server so say there was a web page... on server 1 and the SQL for the site was on server 2 could they be connected so the SQL will work on the site...

    Someone said you need to change the host to the IP of the SQL server is this right?

    and will it work?

    Dan

    Moved by lAscend (Forum Super Moderator) from Designing & Development. There is a new forum for this now
    Last edited by lAscend; 27-03-2008 at 05:07 PM.


  2. #2
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    yeh but you need a domain for instance my mysql is hosted at a seperate server on

    mysqlxx.xxxxxx.com
    How could this hapen to meeeeeeeeeeeeeee?lol.

  3. #3
    Join Date
    Mar 2005
    Location
    London
    Posts
    4,402
    Tokens
    3,894
    Habbo
    Intricat

    Latest Awards:

    Default

    Yes you can. Instead of localhost put the ip address of where the SQL server is. Then put the SQL database name, username and password in for that server.

    Example:

    Servers ip with SQL: 192.168.0.100
    Database Name: CpanelUserName_DatabaseName
    Database Username: CpanelUserName_DatabaseUserName
    Database Password: Password

    Hope this helps =)

  4. #4
    Join Date
    Apr 2005
    Posts
    4,614
    Tokens
    1,290

    Latest Awards:

    Default

    Remember to allow access from the other sites IP though from cPanel.

  5. #5
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    The issue is SQL is cpanel and the other server isn't cpanel will it still work??


  6. #6
    Join Date
    Apr 2005
    Posts
    4,614
    Tokens
    1,290

    Latest Awards:

    Default

    Yes it should do.

  7. #7
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    Ok how do u set the cpanel server to accept the web server??


  8. #8
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Quote Originally Posted by Reconix View Post
    yeh but you need a domain for instance my mysql is hosted at a seperate server on

    mysqlxx.xxxxxx.com
    No you don't.. you can use an IP address.

    Quote Originally Posted by Robbie! View Post
    Remember to allow access from the other sites IP though from cPanel.
    That is a major thing!

    Quote Originally Posted by Luno1599 View Post
    The issue is SQL is cpanel and the other server isn't cpanel will it still work??
    Yes.

    Quote Originally Posted by Luno1599 View Post
    Ok how do u set the cpanel server to accept the web server??
    Go to MySQL Databases > should see a place near the bottom entitled: Access Hosts, enter the IP of the "webserver" that will host the webpages.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •