<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Quick and Dirty Backup Script for MySQL on Windows</title>
	<atom:link href="http://blog.gerke-preussner.de/2010/02/quick-and-dirty-backup-script-for-mysql-on-windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gerke-preussner.de/2010/02/quick-and-dirty-backup-script-for-mysql-on-windows/</link>
	<description>curing the daily madness of software engineering</description>
	<lastBuildDate>Thu, 26 Aug 2010 08:59:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Backing up WPMU under windows &#171; Blogs</title>
		<link>http://blog.gerke-preussner.de/2010/02/quick-and-dirty-backup-script-for-mysql-on-windows/comment-page-1/#comment-945</link>
		<dc:creator>Backing up WPMU under windows &#171; Blogs</dc:creator>
		<pubDate>Tue, 01 Jun 2010 13:57:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gerke-preussner.de/?p=165#comment-945</guid>
		<description>[...] http://blog.gerke-preussner.de/2010/02/quick-and-dirty-backup-script-for-mysql-on-windows/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://blog.gerke-preussner.de/2010/02/quick-and-dirty-backup-script-for-mysql-on-windows/" rel="nofollow">http://blog.gerke-preussner.de/2010/02/quick-and-dirty-backup-script-for-mysql-on-windows/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerke M. Preussner</title>
		<link>http://blog.gerke-preussner.de/2010/02/quick-and-dirty-backup-script-for-mysql-on-windows/comment-page-1/#comment-76</link>
		<dc:creator>Gerke M. Preussner</dc:creator>
		<pubDate>Wed, 10 Feb 2010 14:43:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gerke-preussner.de/?p=165#comment-76</guid>
		<description>For SSL to work you need to have it enabled in MySQL. By default, it is off in the Windows version. You can check whether SSL is enabled by running the following SQL query on your database:

&lt;pre lang=&quot;sql&quot;&gt;
show variables like &#039;have_openssl&#039;
&lt;/pre&gt;

You will also need a valid SSL certificate on the server. For starters you could possibly use a self-signed certificate.

I have never used SSL with MySQL, but you should be able to find plenty of information on the internet.</description>
		<content:encoded><![CDATA[<p>For SSL to work you need to have it enabled in MySQL. By default, it is off in the Windows version. You can check whether SSL is enabled by running the following SQL query on your database:</p>
<pre lang="sql">
show variables like 'have_openssl'
</pre>
<p>You will also need a valid SSL certificate on the server. For starters you could possibly use a self-signed certificate.</p>
<p>I have never used SSL with MySQL, but you should be able to find plenty of information on the internet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles3</title>
		<link>http://blog.gerke-preussner.de/2010/02/quick-and-dirty-backup-script-for-mysql-on-windows/comment-page-1/#comment-71</link>
		<dc:creator>Charles3</dc:creator>
		<pubDate>Tue, 09 Feb 2010 11:29:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gerke-preussner.de/?p=165#comment-71</guid>
		<description>One more thing. The other reason for not running the dump and compression on the master sql server, is to save on resources. I definitely would like to use the ssl option. Can you please tell me if the above option will work?

Thanks</description>
		<content:encoded><![CDATA[<p>One more thing. The other reason for not running the dump and compression on the master sql server, is to save on resources. I definitely would like to use the ssl option. Can you please tell me if the above option will work?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles3</title>
		<link>http://blog.gerke-preussner.de/2010/02/quick-and-dirty-backup-script-for-mysql-on-windows/comment-page-1/#comment-70</link>
		<dc:creator>Charles3</dc:creator>
		<pubDate>Tue, 09 Feb 2010 11:24:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gerke-preussner.de/?p=165#comment-70</guid>
		<description>Great thanks, yes I forgot mysqldump. I have the suse mysql only allowing certain IP access remotely, so I got that covered. Also, the SQL server is not directly exposed to the public. It&#039;s just that the blades only have limited HD Space (scsi server rated), so I have to run the dump on the auto backup server. As far as the SSL, excellent recommendation. Would it look like this:

mysqldump -ssl -uUSER -p%password% -h10.1.10.189 DATABASENAME &gt; %backuppath%\backup.sql</description>
		<content:encoded><![CDATA[<p>Great thanks, yes I forgot mysqldump. I have the suse mysql only allowing certain IP access remotely, so I got that covered. Also, the SQL server is not directly exposed to the public. It&#8217;s just that the blades only have limited HD Space (scsi server rated), so I have to run the dump on the auto backup server. As far as the SSL, excellent recommendation. Would it look like this:</p>
<p>mysqldump -ssl -uUSER -p%password% -h10.1.10.189 DATABASENAME &gt; %backuppath%\backup.sql</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerke M. Preussner</title>
		<link>http://blog.gerke-preussner.de/2010/02/quick-and-dirty-backup-script-for-mysql-on-windows/comment-page-1/#comment-68</link>
		<dc:creator>Gerke M. Preussner</dc:creator>
		<pubDate>Tue, 09 Feb 2010 03:31:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gerke-preussner.de/?p=165#comment-68</guid>
		<description>Charles,


that command line should work, except that the &#039;mysql&#039; should be a &#039;mysqldump&#039;, which is probably what you meant. The -h parameter specifies the host. You can also use -host=HOSTNAME as an alternative. Giving mysqldump a database name as in your case will only dump that particular database.

As for database security, I usually allow access only on localhost through named pipes. Exposing your MySQL over the internet is probably not a good idea. It might be better to run the backup script on the computers that are hosting the databases and having them copy out the results to a location on the local network or the internet instead.

Also, the user name and password will be sent as plain text. You may want to look into mysqldump&#039;s -ssl option to encrypt the transfer.</description>
		<content:encoded><![CDATA[<p>Charles,</p>
<p>that command line should work, except that the &#8216;mysql&#8217; should be a &#8216;mysqldump&#8217;, which is probably what you meant. The -h parameter specifies the host. You can also use -host=HOSTNAME as an alternative. Giving mysqldump a database name as in your case will only dump that particular database.</p>
<p>As for database security, I usually allow access only on localhost through named pipes. Exposing your MySQL over the internet is probably not a good idea. It might be better to run the backup script on the computers that are hosting the databases and having them copy out the results to a location on the local network or the internet instead.</p>
<p>Also, the user name and password will be sent as plain text. You may want to look into mysqldump&#8217;s -ssl option to encrypt the transfer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles3</title>
		<link>http://blog.gerke-preussner.de/2010/02/quick-and-dirty-backup-script-for-mysql-on-windows/comment-page-1/#comment-62</link>
		<dc:creator>Charles3</dc:creator>
		<pubDate>Mon, 08 Feb 2010 13:35:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gerke-preussner.de/?p=165#comment-62</guid>
		<description>Your script is great for my local server. But I have remote sql servers in a bladecenter room. How can I edit your script to backup up remote dbs. For example one of the dbs is on 10.1.10.189. Would it be like so:

mysql -uUSER -p%password% -h10.1.10.189 DATABASENAME &gt; %backuppath%\backup.sql

Or is there other commands/scripts?</description>
		<content:encoded><![CDATA[<p>Your script is great for my local server. But I have remote sql servers in a bladecenter room. How can I edit your script to backup up remote dbs. For example one of the dbs is on 10.1.10.189. Would it be like so:</p>
<p>mysql -uUSER -p%password% -h10.1.10.189 DATABASENAME &gt; %backuppath%\backup.sql</p>
<p>Or is there other commands/scripts?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
