
<?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>VicHaunter.com &#187; redhat</title>
	<atom:link href="http://www.vichaunter.com/tag/redhat/feed" rel="self" type="application/rss+xml" />
	<link>http://www.vichaunter.com</link>
	<description>Memorias de un personaje real</description>
	<lastBuildDate>Fri, 13 Aug 2010 21:07:55 +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>Como activar la caché de MySQL</title>
		<link>http://www.vichaunter.com/servidores/como-activar-la-cache-de-mysql</link>
		<comments>http://www.vichaunter.com/servidores/como-activar-la-cache-de-mysql#comments</comments>
		<pubDate>Tue, 30 Jun 2009 20:10:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Servidores]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://www.vichaunter.com/blog/?p=192</guid>
		<description><![CDATA[Para activar el caché de mysql solo tienes que seguir estos pasos: Ejecuta: $ mysql -u root –p Salida: Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 16 to server &#8230; <a href="http://www.vichaunter.com/servidores/como-activar-la-cache-de-mysql">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Para activar el caché de mysql solo tienes que seguir estos pasos:<br />
<strong>Ejecuta:</strong></p>
<blockquote><p>$ mysql -u root –p</p></blockquote>
<p><strong>Salida:</strong></p>
<blockquote><p>Enter password:<br />
Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 16 to server version: 4.1.15-Debian_1-log</p>
<p>Type &#8216;help;&#8217; or &#8216;\h&#8217; for help. Type &#8216;\c&#8217; to clear the buffer.<br />
mysql></p></blockquote>
<p>Ahora <strong>ajustamos el tamaño</strong> de la caché a 16Mb:</p>
<blockquote><p>mysql> SET GLOBAL query_cache_size = 16777216;</p></blockquote>
<p>Salida:</p>
<blockquote><p>Query OK, 0 rows affected (0.00 sec)</p></blockquote>
<p><strong>Ejecuta:</strong></p>
<blockquote><p>mysql> SHOW VARIABLES LIKE &#8216;query_cache_size&#8217;; </p></blockquote>
<p>Salida:</p>
<blockquote><p> +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+<br />
| Variable_name    | Value    |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+<br />
| query_cache_size | 16777216 |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+</p></blockquote>
<p>Ahora puedes configurarlo en el archivo <strong>/etc/my.cnf (Red Hat)</strong> o <strong>/etc/mysql/my.cnf (Debian)</strong> :</p>
<blockquote><p># nano /etc/my.cnf</p></blockquote>
<p>Y en la sección [mysqld] inserta:</p>
<blockquote><p>query_cache_size = 268435456<br />
query_cache_type=1<br />
query_cache_limit=1048576</p></blockquote>
<p>En el ejemplo de arriba el uso máximo de caché se limita a  1048576 usando la variable del sistema query_cache_limit. Tamaño expresado en Kb.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vichaunter.com/servidores/como-activar-la-cache-de-mysql/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

