<?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>Ramblings from MostlyChris &#187; mysql</title>
	<atom:link href="http://blog.mostlychris.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mostlychris.com</link>
	<description>Tech stuff and a bit more</description>
	<lastBuildDate>Tue, 27 Dec 2011 14:23:25 +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>Listing Users in mysql</title>
		<link>http://blog.mostlychris.com/2011/05/listing-users-in-mysql/</link>
		<comments>http://blog.mostlychris.com/2011/05/listing-users-in-mysql/#comments</comments>
		<pubDate>Sat, 14 May 2011 22:36:28 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql commands]]></category>

		<guid isPermaLink="false">http://blog.mostlychris.com/?p=774</guid>
		<description><![CDATA[I usually just take a look at the users' table in mysql to determine what users have access to databases and from what hosts. I ran across this nifty command today that will print it all out nicely in an ssh shell. mysql -u root -B -N -p -e "SELECT user, host FROM user" mysql]]></description>
		<wfw:commentRss>http://blog.mostlychris.com/2011/05/listing-users-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>InnoDB Shows Disabled</title>
		<link>http://blog.mostlychris.com/2010/10/innodb-shows-disabled/</link>
		<comments>http://blog.mostlychris.com/2010/10/innodb-shows-disabled/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 13:13:54 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[innodb]]></category>

		<guid isPermaLink="false">http://blog.mostlychris.com/?p=734</guid>
		<description><![CDATA[I recently ran across a replication error in mysql that looks a bit like the following: Error: 'Incorrect information in file&#8230; &#8230; .frm on query' If you run the command: mysql -e 'show engines' You will see that the InnoDB engine is DISABLED. Since mysql ships with InnoDB enabled by default, this is a strange [...]]]></description>
		<wfw:commentRss>http://blog.mostlychris.com/2010/10/innodb-shows-disabled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extracting Data from ibdata File Using Second Instance of mySQL</title>
		<link>http://blog.mostlychris.com/2010/10/extracting-data-from-ibdata-file-using-second-instance-of-mysql/</link>
		<comments>http://blog.mostlychris.com/2010/10/extracting-data-from-ibdata-file-using-second-instance-of-mysql/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 05:35:50 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[database recovery]]></category>
		<category><![CDATA[innodb]]></category>

		<guid isPermaLink="false">http://blog.mostlychris.com/?p=724</guid>
		<description><![CDATA[I needed dump some data from a restored ibdata file on a production server. In order to do this, a second instance of mysql was started with a separate data directory. Here are the steps to make it happen. 1. Create a new data directory. mkdir /var/lib/mysql2 2. Install the base mysql server files. mysql_install_db [...]]]></description>
		<wfw:commentRss>http://blog.mostlychris.com/2010/10/extracting-data-from-ibdata-file-using-second-instance-of-mysql/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Extracting Single Table from mysql dump File</title>
		<link>http://blog.mostlychris.com/2010/04/extracting-single-table-from-mysql-dump-file/</link>
		<comments>http://blog.mostlychris.com/2010/04/extracting-single-table-from-mysql-dump-file/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 11:48:51 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[dump file]]></category>
		<category><![CDATA[extract single table]]></category>

		<guid isPermaLink="false">http://blog.mostlychris.com/?p=684</guid>
		<description><![CDATA[Using awk, it is possible to extract a single table from a mysql dump file. You will need to know the name of the table you want AND the name of the table immediately after the table you want. I was able to find this info quicker than loading the whole dump file by going [...]]]></description>
		<wfw:commentRss>http://blog.mostlychris.com/2010/04/extracting-single-table-from-mysql-dump-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimize Mysql</title>
		<link>http://blog.mostlychris.com/2009/12/optimize-mysql/</link>
		<comments>http://blog.mostlychris.com/2009/12/optimize-mysql/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 06:12:20 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[optimize]]></category>

		<guid isPermaLink="false">http://blog.mostlychris.com/?p=611</guid>
		<description><![CDATA[The following command will optimize all databases in mysql (excpect those that don't support it due to their storage engine). mysqlcheck -Aao You can throw the --auto-repair flag in if you are brave.]]></description>
		<wfw:commentRss>http://blog.mostlychris.com/2009/12/optimize-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restoring from mysql-binlog</title>
		<link>http://blog.mostlychris.com/2009/07/restoring-from-mysql-binlog/</link>
		<comments>http://blog.mostlychris.com/2009/07/restoring-from-mysql-binlog/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 10:43:18 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.mostlychris.com/?p=532</guid>
		<description><![CDATA[On more than one occasion I have had to figure out how to restore data from a mysql-binlog and I do it so infrequently that I decided to put the command here so I know where to find it in the future. The first thing to do is to export the binlog. Since it is [...]]]></description>
		<wfw:commentRss>http://blog.mostlychris.com/2009/07/restoring-from-mysql-binlog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dropping All Table in a Database</title>
		<link>http://blog.mostlychris.com/2009/04/dropping-all-table-in-a-database/</link>
		<comments>http://blog.mostlychris.com/2009/04/dropping-all-table-in-a-database/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 22:07:26 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[tables]]></category>

		<guid isPermaLink="false">http://blog.mostlychris.com/?p=414</guid>
		<description><![CDATA[Here is a handy little snippet for deleting all the tables in a database. Replace 'uname' and 'dbname' as required. mysql -u uname dbname -e &#34;show tables&#34; &#124; grep -v Tables_in &#124; grep -v &#34;+&#34; &#160;&#124; gawk '{print &#34;drop table &#34; $1 &#34;;&#34;}' &#124; mysql -u uname dbname]]></description>
		<wfw:commentRss>http://blog.mostlychris.com/2009/04/dropping-all-table-in-a-database/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>REPAIR MESSED UP .FRM FILE</title>
		<link>http://blog.mostlychris.com/2009/04/repair-messed-up-frm-file/</link>
		<comments>http://blog.mostlychris.com/2009/04/repair-messed-up-frm-file/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 22:02:24 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[repair]]></category>

		<guid isPermaLink="false">http://blog.mostlychris.com/?p=411</guid>
		<description><![CDATA[If your .FRM file gets hosed up, you'll need to repair it or your database(s) will be worthless. You'll still need to make sure you make regular backups of your databases so you can use them to rebuild the .FRM file. 1. Get last good backup of database (assumes the backup is an .sql formatted [...]]]></description>
		<wfw:commentRss>http://blog.mostlychris.com/2009/04/repair-messed-up-frm-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

