Web Hosting, Design, & Coding forum

Question

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 -
Answer
Re: DB tp DB
by Kees_B Forum moderator / July 4, 2013 12:24 AM PDT
Collapse -
reply
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.

~Sovereign

Popular Forums
icon
Computer Help 47,885 discussions
icon
Computer Newbies 10,322 discussions
icon
iPhones, iPods, & iPads 3,188 discussions
icon
Security 30,333 discussions
icon
TVs & Home Theaters 20,177 discussions
icon
HDTV Picture Setting 1,932 discussions
icon
Phones 15,713 discussions
icon
Windows 7 6,210 discussions
icon
Networking & Wireless 14,510 discussions

Big stars on small screens

Smosh tells CNET what it took to make it big online

Internet sensations Ian Hecox and Anthony Padilla discuss how YouTube has changed and why among all their goals, "real TV" isn't an ambition.