<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SentientCreations &#187; Software</title>
	<atom:link href="http://sentientcreations.com/category/software/feed/" rel="self" type="application/rss+xml" />
	<link>http://sentientcreations.com</link>
	<description></description>
	<lastBuildDate>Wed, 07 Mar 2012 20:50:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Manually Sync Two Databases</title>
		<link>http://sentientcreations.com/2012/03/07/manually-sync-two-databases/</link>
		<comments>http://sentientcreations.com/2012/03/07/manually-sync-two-databases/#comments</comments>
		<pubDate>Wed, 07 Mar 2012 20:49:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sync]]></category>

		<guid isPermaLink="false">http://sentientcreations.com/?p=77</guid>
		<description><![CDATA[<p>At the office we have a live database and then one we use for development. We don&#8217;t want them to sync in real time, because sometimes we need to make changes to the dev version that would break the sync, but at some point we will always need to get the dev version back in [...]]]></description>
			<content:encoded><![CDATA[<p>At the office we have a live database and then one we use for development. We don&#8217;t want them to sync in real time, because sometimes we need to make changes to the dev version that would break the sync, but at some point we will always need to get the dev version back in sync with the live version. Up until now we&#8217;ve been managing that manually by exporting the live database and then importing it into the dev version, which works but is kinda clunky. I got a bit sick of that today and went looking for another solution. After a lot more looking around than I thought it would take, I <a href="http://blog.4webby.com/posts/view/9/mysql_how_to_syncronize_remote_and_local_databases_with_shell_and_ssh" target="_blank">ran across this post on the 4webby blog</a>.</p>
<p>The ssh command to get the sync done is surprisingly simple:</p>
<p><span style="font-family: 'courier new', monospace;">ssh root@www.liveserver.com &#8220;mysqldump -u [user] &#8211;password=[pass] [database]&#8221; | mysql -u [user] &#8211;password=[pass] &#8211;host=localhost -C [database]</span></p>
<p>Just run that from the server you want to sync to, put in the remote password and you are good.</p>
]]></content:encoded>
			<wfw:commentRss>http://sentientcreations.com/2012/03/07/manually-sync-two-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

