Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7019785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:13:51+00:00 2026-05-27T23:13:51+00:00

I have two shared hosting accounts, each with a database of its own (its

  • 0

I have two shared hosting accounts, each with a database of its own (its own cPanel login). Assuming these two databases have the same structure, what do I need to do in order to synchronize them?

The synchronization script would be on a domain connected with one of the hosting accounts. I know the MySQL/PHP for synchronizing databases that are on the same account is fairly simple, but what’s confusing me here is how to access the database which is on different hosting?

This isn’t a one-time thing, I need to be able to do this by clicking a button/link.

The only thing that comes to mind is having the remote database export everything to .csv files on a regular basis and have the script on the domain connected to the first database import everything, but there’s gotta be a better way?

In case this whole question is confusing, the gist of the problem is – is there a way to have a script on a domain access a database on a completely different shared hosting account?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:13:52+00:00Added an answer on May 27, 2026 at 11:13 pm

    In short, no, there’s no way.

    Usually, hosting providers allow DB access only to localhost users. Meaning that script from another machine can’t access it.

    Also, what kind of synchronization is it? One-way or two-way? (but, I guess, this is out of scope here)

    The only viable solution that comes to mind is some kind of dump/restore procedure.

    Example:

    • webserver A (source of data) defines an URL, by requesting which you can get dumped content of the DB

    • webserver B (destination of data) defines a page with button ‘Sync’.

    • upon clicking the ‘Sync’ button, server B will fetch that URL from server A, receive A’s data and merge it with its own.

    NOTE

    It is important to secure data export URL. In that script you can check, for example, IP of incoming request, or presence and correctness of “access_token” or whatever you like.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Two Windows processes have memory mapped the same shared file. If the file consists
I have two Rails 3 applications that will share portions of the same database
I have shared hosting with two different hosting providers. I have the smallest DB
Example: I have two shared objects (same should apply to .dlls). The first shared
I have two completely independent web application that each use a shared core dll.
Let's say I have two iPhone apps with shared core functionality. The apps isn't
I have a partial view that is shared between two controllers and I'm trying
How can two forms share the same inputs? I have two forms, one for
I have two separate applications (both part of the same system) that share a
Lets say I have two shared variables - a and b - that are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.