Web Hosting, Design, & Coding forum


Sync localhost DB to remote host DB in wordpress

by techcloud7 / July 3, 2013 11:17 PM PDT

Hello, I run a technology blog called as techcloud7.com. I am facing one issue these days. I want to sync localhost database to the remote host's so that every single time when I made any changes to my site I don't need to update my database manually (.. Remote host everytime) or another Wordpress site. Please, advise me any good online solution or plugin.

Note: This post was edited by a forum moderator to remove promotional link on 07/05/2013 at 12:57 PM PT

Answer This Ask For Clarification
Discussion is locked
You are posting a reply to: Sync localhost DB to remote host DB in wordpress
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Sync localhost DB to remote host DB in wordpress
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.

All Answers

Collapse -
Re: DB tp DB
by Kees_B Forum moderator / July 4, 2013 12:24 AM PDT
Collapse -
by techcloud7 / July 4, 2013 1:00 AM PDT
In reply to: Re: DB tp DB

I know that is replica but i don't want this see

I develop Wordpress sites, and I have a local xampp server I use when developing locally and then I sync my changes to the remote server. To sync the database I have to export from my local PHPMyAdmin and then import to the remote PHPMyAdmin.same for every time (i have shared hosting)

Collapse -
Wordpress sync script
by HiddeB / December 16, 2013 3:50 AM PST
In reply to: reply
Collapse -
Actually, you synchronize
by Sovereign Forum moderator / December 16, 2013 3:38 PM PST
In reply to: Wordpress sync script

files and database with just a few lines of code:

rsync --archive --verbose --delete --delete-excluded "$src" "$dst"
mysqldump --verbose --host=$host --user=$user --password $db > "$dst/$db.sql"
mysql --user=$user --password=$pass $db < "$src/$db.sql"

Nothing complicated about it.


Popular Forums
Computer Help 49,613 discussions
Computer Newbies 10,349 discussions
Laptops 19,436 discussions
Security 30,426 discussions
TVs & Home Theaters 20,308 discussions
Windows 10 360 discussions
Phones 15,802 discussions
Windows 7 7,351 discussions
Networking & Wireless 14,641 discussions


Free trip to the Grand Prix

Don't miss your chance to win a trip to the Formula 1 Grand Prix in Monaco for you and a plus-one.