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 8498547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:26:00+00:00 2026-06-11T00:26:00+00:00

I have two shared server (Server 1 and server 2) and one dedicated server.in

  • 0

I have two shared server (Server 1 and server 2) and one dedicated server.in the dedicated server i am running a script that will insert data in to server 1.

Now i want to sync all data from the sever 1 to server 2 in each month (Basically keeping backup database)

For the Server 1 and 2 , i dont have root access . So i have to do it in the Dedicated server.

is there any way that i can do using mysql -host -u -p comment ??

if there is any other idea , can you help me out ?

  • 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-06-11T00:26:01+00:00Added an answer on June 11, 2026 at 12:26 am

    As the question states to sync all data from one server to another, I think you can use a relatively simple solution, involving mysqldump.

    I think you can do this all from the dedicated server:

    mysqldump --user=<username> --password=<password> --host=<server 1 hostname> --port=<port> --add-drop-database <database name> > dump.sql
    

    Replace <username>, <password>, <port> and <server 1 hostname> with the connection details for server 1. Replace with the name of the database on server 1 you want to copy to server 2. If you want to copy all database, replace with the –all-databases option.

    This will make a file called dump.sql in the current directory. You can then load this into server 2:

    mysql --user=<username> --password=<password> --host=<server 2 hostname> --port=<port> <database name> < dump.sql
    

    Replace <username>, <password>, <port> and <server 2 hostname> with the connection details for server 2.

    This will take the dump.sql file, and load it into the database on server 2. This will drop the database on server 2 – so all existing data will be replaced with that in dump.sql.

    Check the options to mysqldump (regarding drop databases, drop tables etc) and tailor the above commands to be suitable for your situation. I think, if you hook things up correctly, you could even bypass the intermediate file and connect the mysqldump on server 1 to mysql on server 2 using a socket.

    To cover the ‘automated’ part of this question, you could run the above commands under cron and schedule them to run on the first day of every month at a suitable time.

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

Sidebar

Related Questions

I have two computers with Windows Server 2003. One computer has some shared folders
I have a partial view that is shared between two controllers and I'm trying
I have two Rails 3 applications that will share portions of the same database
Will the shared memory be corrupted if two programs access it simultaneously, one writing
I have two Windows Server 2008 machines on the same domain. Server one is
I have two SQL Server databases with identical schemas, but different data. I also
I have two ASP.NET 4.0 test sites on a Windows 2008 server (IIS7) One
I have a script that pulls from an external database and stores the data
I have two threads. One threads reads requests and passes it to server using
I have three solutions which build two clients and a server, and share many

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.