0

How it is possible to update localhost MySql database with server mysql database at particular interval. Web application is made in PHP and database should be in MySql.

Suppose I have a Database at Hosting site Now i want to update my database at regular interval with Local Host Database at my Local Computer.Please suggest me ??

3
  • What is the OS on your local machine? Do you have SSH access? Commented Sep 9, 2010 at 14:12
  • Windows is the OS on my Local Machine Commented Sep 9, 2010 at 14:16
  • similar/dupe question: stackoverflow.com/q/456900/215170 Commented Sep 17, 2010 at 4:36

1 Answer 1

2

Sounds like you need to use MySQL's replication feature. Here's a walkthrough and here's the manual for reference.

It's worth noting that replication over the internet (rather than a local network) can be slow and you can end up with a slave that's minutes, even hours behind a busy master. Another option could be to periodically mysqldump the master database and copy it back to your local machine, although if your master is very busy you'll lock databases and hang queries, and if it's very large this process will take a long time.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.