<?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>Cheat Monk &#187; MySQL</title>
	<atom:link href="http://cheatmonk.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://cheatmonk.com</link>
	<description>Quick codes, one liners and cheats courtesy of the Monk</description>
	<lastBuildDate>Thu, 29 Dec 2011 18:09:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Find Out Which Repository an RPM is Installed From</title>
		<link>http://cheatmonk.com/2011/02/find-out-which-repository-an-rpm-is-installed-from/</link>
		<comments>http://cheatmonk.com/2011/02/find-out-which-repository-an-rpm-is-installed-from/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 03:02:30 +0000</pubDate>
		<dc:creator>Code Monk</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[packages]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://cheatmonk.com/?p=30</guid>
		<description><![CDATA[You might be wondering which an rpm package came from. When yum info will list &#8220;installed&#8221; instead of which repository, well here is a one liner that can help: rpm -q gpg-pubkey --provides &#124; grep `rpm -qi &#124;grep Signature&#124;awk '{print $(NF)}'&#124;tail -1` Here is a sample: [root@vm-linux-01 ~]# rpm -q gpg-pubkey --provides &#124; grep `rpm [...]]]></description>
			<content:encoded><![CDATA[<p>You might be wondering which an rpm package came from. When <code>yum info
<packagename></code> will list &#8220;installed&#8221; instead of which repository, well here is a one liner that can help:</p>
<p><code>rpm -q gpg-pubkey --provides | grep `rpm -qi <PACKAGENAME>|grep Signature|awk '{print $(NF)}'|tail -1`</code></p>
<p>Here is a sample:<br />
<code><br />
[root@vm-linux-01 ~]# rpm -q gpg-pubkey --provides | grep `rpm -qi mysql-server|grep Signature|awk '{print $(NF)}'|tail -1`<br />
gpg(Atomic Rocket Turtle <admin@atomicrocketturtle.com>) = 4:32a951145ebd2744-418ffac9<br />
gpg(5ebd2744) = 4:32a951145ebd2744-418ffac9<br />
</code></p>
<p>So we know that mysql-server came from the Atomic repo <img src='http://cheatmonk.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://cheatmonk.com/2011/02/find-out-which-repository-an-rpm-is-installed-from/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Backup of All MySQL Databases</title>
		<link>http://cheatmonk.com/2009/10/quick-backup-of-all-mysql-databases/</link>
		<comments>http://cheatmonk.com/2009/10/quick-backup-of-all-mysql-databases/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 04:46:37 +0000</pubDate>
		<dc:creator>Code Monk</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mysqldump]]></category>

		<guid isPermaLink="false">http://cheatmonk.com/?p=7</guid>
		<description><![CDATA[Create a quick backup of all MySQL databases via mysqldump on the current directory. Replace USERNAME and PASSWORD with your own. for db in `mysql -u USERNAME -pPASSWORD -e 'show databases'&#124;tail -n +2`; do mysqldump -u USERNAME -pPASSWORD -l $db > $db.sql; done;]]></description>
			<content:encoded><![CDATA[<p>Create a quick backup of all MySQL databases via mysqldump on the current directory. Replace USERNAME and PASSWORD with your own.</p>
<p><code>for db in `mysql -u USERNAME -pPASSWORD -e 'show databases'|tail -n +2`; do mysqldump -u USERNAME -pPASSWORD -l $db > $db.sql; done;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://cheatmonk.com/2009/10/quick-backup-of-all-mysql-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

