<?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: How to move mysql database to another drive or partition</title>
	<atom:link href="http://www.ubuntu-howto.info/howto/how-to-move-mysql-databases-to-another-location-partition-or-hard-drive/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ubuntu-howto.info/howto/how-to-move-mysql-databases-to-another-location-partition-or-hard-drive</link>
	<description>Stuff I learnt by doing and I'm happy to share</description>
	<pubDate>Mon, 06 Feb 2012 19:14:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Roy</title>
		<link>http://www.ubuntu-howto.info/howto/how-to-move-mysql-databases-to-another-location-partition-or-hard-drive/comment-page-1#comment-5373</link>
		<dc:creator>Roy</dc:creator>
		<pubDate>Fri, 23 Dec 2011 14:25:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntu-howto.info/?p=4#comment-5373</guid>
		<description>READ THIS:

Make sure to move all the ibdataN / ib_logfileN files or you WILL LOSE ALL YOU InnoDB DATA! 

Damn... yes, they get recreated... and if you don't use InnoDB you won't notice... but if you do (like me) you will face a LOT of problems. 

I guess it serves me right for relying on an old source like this.

/rant</description>
		<content:encoded><![CDATA[<p>READ THIS:</p>
<p>Make sure to move all the ibdataN / ib_logfileN files or you WILL LOSE ALL YOU InnoDB DATA! </p>
<p>Damn&#8230; yes, they get recreated&#8230; and if you don&#8217;t use InnoDB you won&#8217;t notice&#8230; but if you do (like me) you will face a LOT of problems. </p>
<p>I guess it serves me right for relying on an old source like this.</p>
<p>/rant</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Isaac</title>
		<link>http://www.ubuntu-howto.info/howto/how-to-move-mysql-databases-to-another-location-partition-or-hard-drive/comment-page-1#comment-4639</link>
		<dc:creator>Isaac</dc:creator>
		<pubDate>Mon, 03 Oct 2011 19:22:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntu-howto.info/?p=4#comment-4639</guid>
		<description>I have to give thanks for and second the INNODB files advice. I copied just the database directories (i.e. mysql, wpdb, drupalMain, etc) and had my innodb tables show up in "SHOW TABLES" statements, but any query (select, describe) would result in "table db.tablename doesn't exist", even though the .frm file was there in the db directory. When I copied over ibdata1, ib_logfile0, and ib_logfile1, everything worked.</description>
		<content:encoded><![CDATA[<p>I have to give thanks for and second the INNODB files advice. I copied just the database directories (i.e. mysql, wpdb, drupalMain, etc) and had my innodb tables show up in &#8220;SHOW TABLES&#8221; statements, but any query (select, describe) would result in &#8220;table db.tablename doesn&#8217;t exist&#8221;, even though the .frm file was there in the db directory. When I copied over ibdata1, ib_logfile0, and ib_logfile1, everything worked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David M</title>
		<link>http://www.ubuntu-howto.info/howto/how-to-move-mysql-databases-to-another-location-partition-or-hard-drive/comment-page-1#comment-4275</link>
		<dc:creator>David M</dc:creator>
		<pubDate>Sun, 18 Sep 2011 07:01:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntu-howto.info/?p=4#comment-4275</guid>
		<description>Had to update apparmor, per Don's reply (August 15, 2008 at 12:43 am) on Ubuntu 11.04 Server (command line) using MySQL 5.1.54.

Also, I always make sure, one more time, to chmod -R mysql:mysql mysql_datadir (or whatever your folder name is) at the end of it all, before restarting MySQL.

Thanks to all, and especially "thomas' - keeper of this blog.

David</description>
		<content:encoded><![CDATA[<p>Had to update apparmor, per Don&#8217;s reply (August 15, 2008 at 12:43 am) on Ubuntu 11.04 Server (command line) using MySQL 5.1.54.</p>
<p>Also, I always make sure, one more time, to chmod -R mysql:mysql mysql_datadir (or whatever your folder name is) at the end of it all, before restarting MySQL.</p>
<p>Thanks to all, and especially &#8220;thomas&#8217; - keeper of this blog.</p>
<p>David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moving mysql to another data directory &#171; From The Ground Up</title>
		<link>http://www.ubuntu-howto.info/howto/how-to-move-mysql-databases-to-another-location-partition-or-hard-drive/comment-page-1#comment-3468</link>
		<dc:creator>Moving mysql to another data directory &#171; From The Ground Up</dc:creator>
		<pubDate>Fri, 17 Jun 2011 18:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntu-howto.info/?p=4#comment-3468</guid>
		<description>[...] found myself referencing more than one source to do this properly. The best source I found was Ubuntu How-To. Note that you must be root or run all commands using sudo. For the most part this reference is [...]</description>
		<content:encoded><![CDATA[<p>[...] found myself referencing more than one source to do this properly. The best source I found was Ubuntu How-To. Note that you must be root or run all commands using sudo. For the most part this reference is [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: veterinarna klinika</title>
		<link>http://www.ubuntu-howto.info/howto/how-to-move-mysql-databases-to-another-location-partition-or-hard-drive/comment-page-1#comment-2868</link>
		<dc:creator>veterinarna klinika</dc:creator>
		<pubDate>Mon, 28 Mar 2011 14:33:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntu-howto.info/?p=4#comment-2868</guid>
		<description>thank you really</description>
		<content:encoded><![CDATA[<p>thank you really</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.ubuntu-howto.info/howto/how-to-move-mysql-databases-to-another-location-partition-or-hard-drive/comment-page-1#comment-2856</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 23 Mar 2011 01:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntu-howto.info/?p=4#comment-2856</guid>
		<description>On Ubuntu 10.10 server, I also had to modify the script used by the "service start mysql"/"start mysql" command. The script is /etc/init/mysql.conf. The changes were
1. Replaced the only instance of the default data dir (/var/lib/mysql) with my new location
2. Changed the line "exec /usr/sbin/mysqld" to "exec /usr/sbin/mysqld --basedir=/usr"</description>
		<content:encoded><![CDATA[<p>On Ubuntu 10.10 server, I also had to modify the script used by the &#8220;service start mysql&#8221;/&#8221;start mysql&#8221; command. The script is /etc/init/mysql.conf. The changes were<br />
1. Replaced the only instance of the default data dir (/var/lib/mysql) with my new location<br />
2. Changed the line &#8220;exec /usr/sbin/mysqld&#8221; to &#8220;exec /usr/sbin/mysqld &#8211;basedir=/usr&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bugref</title>
		<link>http://www.ubuntu-howto.info/howto/how-to-move-mysql-databases-to-another-location-partition-or-hard-drive/comment-page-1#comment-2852</link>
		<dc:creator>bugref</dc:creator>
		<pubDate>Mon, 07 Mar 2011 12:15:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntu-howto.info/?p=4#comment-2852</guid>
		<description>Its a Great Tips and Thank you very much</description>
		<content:encoded><![CDATA[<p>Its a Great Tips and Thank you very much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mover o Data Location do Mysql de um Lugar para o Outro&#8230; &#124; THIAGOLDANIEL.COM.BR</title>
		<link>http://www.ubuntu-howto.info/howto/how-to-move-mysql-databases-to-another-location-partition-or-hard-drive/comment-page-1#comment-2805</link>
		<dc:creator>Mover o Data Location do Mysql de um Lugar para o Outro&#8230; &#124; THIAGOLDANIEL.COM.BR</dc:creator>
		<pubDate>Tue, 23 Nov 2010 16:18:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntu-howto.info/?p=4#comment-2805</guid>
		<description>[...] processo com CentOS e Debian e rolou 100%.O documento fonte pode ser acessado pelo endereço:http://www.ubuntu-howto.info/howto/how-to-move-mysql-databases-to-another-location-partition-or-hard....Obrigado THOMAS pelo conhecimento [...]</description>
		<content:encoded><![CDATA[<p>[...] processo com CentOS e Debian e rolou 100%.O documento fonte pode ser acessado pelo endereço:http://www.ubuntu-howto.info/howto/how-to-move-mysql-databases-to-another-location-partition-or-hard&#8230;.Obrigado THOMAS pelo conhecimento [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boner</title>
		<link>http://www.ubuntu-howto.info/howto/how-to-move-mysql-databases-to-another-location-partition-or-hard-drive/comment-page-1#comment-2789</link>
		<dc:creator>Boner</dc:creator>
		<pubDate>Mon, 08 Nov 2010 23:51:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntu-howto.info/?p=4#comment-2789</guid>
		<description>"imwaltraud says:
February 3, 2009 at 9:01 pm

You should also move the ibdata1, ib_logfile0 and ib_logfile1 files. If you don’t all your InnoDB tables will be gone."

I did have to do this on RHEL4.  Very helpful tip, thanks.</description>
		<content:encoded><![CDATA[<p>&#8220;imwaltraud says:<br />
February 3, 2009 at 9:01 pm</p>
<p>You should also move the ibdata1, ib_logfile0 and ib_logfile1 files. If you don’t all your InnoDB tables will be gone.&#8221;</p>
<p>I did have to do this on RHEL4.  Very helpful tip, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morten</title>
		<link>http://www.ubuntu-howto.info/howto/how-to-move-mysql-databases-to-another-location-partition-or-hard-drive/comment-page-1#comment-2772</link>
		<dc:creator>Morten</dc:creator>
		<pubDate>Thu, 21 Oct 2010 09:44:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntu-howto.info/?p=4#comment-2772</guid>
		<description>I had to make a change in /etc/apparmor.d/abstractions/mysql too, otherwise the admin client couldn't connect on localhost. This is with Ubuntu 10.04 Lucid Lynx desktop, not server. YMMV.

@Don: tried that, couldn't make it work, probably because apparmor wouldn't have any (the messages in the log indicates that it sees the raw directory, not the symlink).</description>
		<content:encoded><![CDATA[<p>I had to make a change in /etc/apparmor.d/abstractions/mysql too, otherwise the admin client couldn&#8217;t connect on localhost. This is with Ubuntu 10.04 Lucid Lynx desktop, not server. YMMV.</p>
<p>@Don: tried that, couldn&#8217;t make it work, probably because apparmor wouldn&#8217;t have any (the messages in the log indicates that it sees the raw directory, not the symlink).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

