Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2005
    Posts
    61
    Plugin Contributions
    0

    how about using a remote mySQL server

    Can I use a remote mySQL server?

    Will it cause any security or synchronization problem?

    I am have several hosting accounts.
    I am thinking of put my sites normal files on all those servers, and share one mySQL server on one VPS hosting.

    So my site won't go offline.
    Any hosting's down, I can simply switch the domain's DNS to point to another server.

    Anyone give me suggestion on it?

    Thanks a lot.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: how about using a remote mySQL server

    Zen Cart can use any accessible MySQL server for its data. If you wish to use a server other than "localhost", simply set the DB_SERVER parameter in your configure.php files to point to the proper server. The other DB_xxxxx settings need to suit the security credentials required for the database+user on that server.

    There are security implications though.
    If that server sits outside your hosting company's internal network of servers, then your data will be vulnerable to sniffing and theft.

    There are performance issues too.
    If that server sits outside your hosting company's internal network, then you have to use a slower connection to get to the database server, then wait for it to retrieve the data, and send it back across the slower connection again. Sometimes this can be problematic. Sometimes it's unnoticable.


    Zen Cart will do what you tell it to do. How you secure it and how well it performs, are issues Zen Cart cannot resolve for you.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2005
    Posts
    61
    Plugin Contributions
    0

    Default Re: how about using a remote mySQL server

    thanks a lot

  4. #4
    Join Date
    Dec 2005
    Location
    My Own Fluffy Place, Pangea
    Posts
    420
    Plugin Contributions
    0

    Default Re: how about using a remote mySQL server

    Connect to the outside mysql server through SSL. I don't know if that's build in to the standard rpm, you might need to compile your own mysql.
    Yeah! I'm small! I'm Fluffy! *Stick tongue out*

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: how about using a remote mySQL server

    Good point. Remember that encrypting to SSL will add another layer of slowdown, so if the internet connections between your webserver and the database server are slow in any way ... then your website will be too.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: how about using a remote mySQL server

    I am have several hosting accounts. I am thinking of put my sites normal files on all those servers.
    If your website is on a separate server to MySQL then the website will need to have a dedicated ip address to allow it to be set up as a 'Remote User ' on the MySQL server (for access).

    If you have other websites spread across other servers they'd all need to have dedicated ip addrsses and all need to be set up as 'Remote Users'.
    Personally I think it's a recipe for disaster.

    So my site won't go offline. Any hosting's down, I can simply switch the domain's DNS to point to another server.
    Yes, you can do that, and in about 48-72 hrs the various ISP's will have updated their records of where the domain is located and the sites will be back online. If you genuinely want to protect against sites going offline then there are two alternatives:

    1. Genuine Co-Location hosting (not cheap by any means)

    2. A server with three hard drives, two in Hardware RAID, the third for backups. If the one disc fails the other takes over - if both fail you have a backup which can be rolled out to new hard drives. Also not cheap.

    Vger

 

 

Similar Threads

  1. v150 cannot launch zc_instal on remote server; identical config works on local server
    By BevCox in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 11 May 2012, 12:04 AM
  2. Can we install using an SQL server and not mySQL?
    By cswebtech in forum Installing on a Windows Server
    Replies: 1
    Last Post: 7 May 2009, 05:49 PM
  3. Replies: 0
    Last Post: 20 Aug 2008, 10:30 AM
  4. how to Install Zen Cart on a remote server
    By wingsze in forum General Questions
    Replies: 4
    Last Post: 17 Mar 2008, 04:38 AM

Posting Permissions

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