<?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>mycnf | /var/logs/paulooi.log</title>
	<atom:link href="https://logs.paulooi.com/tag/mycnf/feed" rel="self" type="application/rss+xml" />
	<link>https://logs.paulooi.com</link>
	<description>Systems Admin, Web Development and etc</description>
	<lastBuildDate>Wed, 06 Jul 2011 12:38:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>How to Change MySQL Data Directory in Linux Centos</title>
		<link>https://logs.paulooi.com/how-to-change-mysql-data-directory-in-linux-centos.php</link>
					<comments>https://logs.paulooi.com/how-to-change-mysql-data-directory-in-linux-centos.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Sat, 02 Jul 2011 06:04:37 +0000</pubDate>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[datadir]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mycnf]]></category>
		<category><![CDATA[mysql]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1413</guid>

					<description><![CDATA[<p>By default Linux CentOS or other Linux Distro installation, MySQL data directory is stored in /var/db/mysql, how can I change it to other directory in example /db/mysql? It is always better to have MySQL Data Directory store in a specific...</p>
The post <a href="https://logs.paulooi.com/how-to-change-mysql-data-directory-in-linux-centos.php">How to Change MySQL Data Directory in Linux Centos</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p><strong>By default Linux CentOS or other Linux Distro installation, MySQL data directory is stored in /var/db/mysql, how can I change it to other directory in example /db/mysql? </strong></p>
<p>It is always better to have MySQL Data Directory store in a specific partition/drive. It will help on performance and better management and scalability. You change change the data store directory in Linux by editing /etc/my.cnf file.</p>
<p>Edit /etc/my.cnf file</p>
<pre>
<code>
# vi /etc/my.cnf
</code>
</pre>
<p>Change the data directory structure</p>
<pre>
<code>
datadir=/db/mysql
socket=/db/mysql/mysql.sock
</code>
</pre>
<p>After the file has been updated, restart MySQL service.</p>The post <a href="https://logs.paulooi.com/how-to-change-mysql-data-directory-in-linux-centos.php">How to Change MySQL Data Directory in Linux Centos</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/how-to-change-mysql-data-directory-in-linux-centos.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
