﻿<?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>Jonathan López &#187; MySQL</title>
	<atom:link href="http://preocupao.net/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://preocupao.net</link>
	<description></description>
	<lastBuildDate>Tue, 14 Jul 2009 21:53:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Change MySQL variables without restart</title>
		<link>http://preocupao.net/2008/04/16/change-mysql-variables-without-restart/</link>
		<comments>http://preocupao.net/2008/04/16/change-mysql-variables-without-restart/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 23:03:24 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.preocupao.net/?p=21</guid>
		<description><![CDATA[A simple way to change runtime variables wihtout restarting mysql server. First check the running value: mysql> show variables like 'long_query%'; +-----------------+-------+ &#124; Variable_name &#124; Value &#124; +-----------------+-------+ &#124; long_query_time &#124; 10 &#124; +-----------------+-------+ Change the value: mysql&#62; set @@long_query_time=2; &#8230; <a href="http://preocupao.net/2008/04/16/change-mysql-variables-without-restart/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A simple way to change runtime variables wihtout restarting mysql server.</p>
<p>First check the running value:</p>
<p><code>mysql> show variables like 'long_query%';<br />
+-----------------+-------+<br />
| Variable_name   | Value |<br />
+-----------------+-------+<br />
| long_query_time | 10    |<br />
+-----------------+-------+</code></p>
<p>Change the value:</p>
<p><code>mysql&gt; set @@long_query_time=2;</code></p>
<p>Check again:</p>
<p><code>mysql&gt; show variables like 'long_query%';<br />
+-----------------+-------+<br />
| Variable_name   | Value |<br />
+-----------------+-------+<br />
| long_query_time | 2     |<br />
+-----------------+-------+</code></p>
<p>Success!</p>
]]></content:encoded>
			<wfw:commentRss>http://preocupao.net/2008/04/16/change-mysql-variables-without-restart/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Could not connect to database for SQL SessionHandler</title>
		<link>http://preocupao.net/2008/04/03/could-not-connect-to-database-for-sql-sessionhandler/</link>
		<comments>http://preocupao.net/2008/04/03/could-not-connect-to-database-for-sql-sessionhandler/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 21:00:57 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Horde]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.preocupao.net/?p=16</guid>
		<description><![CDATA[When you try to login in Horde you see this error: A fatal error has occurred Could not connect to database for SQL SessionHandler. Details have been logged for the administrator. There are some different reasons that causes this error. &#8230; <a href="http://preocupao.net/2008/04/03/could-not-connect-to-database-for-sql-sessionhandler/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When you try to login in Horde you see this error:</p>
<p>A fatal error has occurred<br />
Could not connect to database for SQL SessionHandler.<br />
Details have been logged for the administrator.</p>
<p>There are some different reasons that causes this error. This is a checklist to solve the problem.</p>
<p><span id="more-16"></span><br />
First, check the <em>/etc/my.cnf</em> and remove <em>skip-innodb</em> if its in there.</p>
<p>Second, repair Horde database</p>
<p><code>mysqlcheck --auto-repair horde</code></p>
<p>Third, enter mysql and check what socket file is using mysql:</p>
<p><code># mysql<br />
mysql> show variables like 'socket';</code></p>
<p>You must see something like this:</p>
<p><code>socket        /var/lib/mysql/mysql.sock</code></p>
<p>Edit the config file:</p>
<p><code>vi /usr/local/cpanel/base/horde/config/conf.php</code></p>
<p>Change the following two lines from:</p>
<p><code>$conf['sql']['hostspec'] = 'localhost';<br />
$conf['sessionhandler']['params']['hostspec'] = 'localhost';</code></p>
<p>to:</p>
<p><code>$conf['sql']['hostspec'] = 'localhost:/var/lib/mysql/mysql.sock';<br />
$conf['sessionhandler']['params']['hostspec'] = 'localhost:/var/lib/mysql/mysql.sock';</code></p>
]]></content:encoded>
			<wfw:commentRss>http://preocupao.net/2008/04/03/could-not-connect-to-database-for-sql-sessionhandler/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Cambiar password de root de MySQL</title>
		<link>http://preocupao.net/2007/12/18/cambiar-password-de-root-de-mysql/</link>
		<comments>http://preocupao.net/2007/12/18/cambiar-password-de-root-de-mysql/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 22:17:21 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.preocupao.net/cambiar-password-de-root-de-mysql-2/</guid>
		<description><![CDATA[Pasos para cambiar la contraseña del usuario root para el servicio MySQL: 1º Parar cualquier instancia del servicio /etc/init.d/mysql stop 2º Iniciar MySQL en modo seguro /usr/bin/mysqld_safe --skip-grant-tables 3º Ejecutamos el cliente de MySQL y seleccionamos la base de datos &#8230; <a href="http://preocupao.net/2007/12/18/cambiar-password-de-root-de-mysql/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Pasos para cambiar la contraseña del usuario root para el servicio MySQL:</p>
<p>1º Parar cualquier instancia del servicio</p>
<p><code>/etc/init.d/mysql stop</code></p>
<p>2º Iniciar MySQL en modo seguro</p>
<p><code>/usr/bin/mysqld_safe --skip-grant-tables</code></p>
<p>3º  Ejecutamos el cliente de MySQL y seleccionamos la base de datos mysql</p>
<p><code>mysql</code></p>
<p><code>use mysql;</code></p>
<p>4º Actualizamos la contraseña del usuario root</p>
<p><code>update user set Password=('password') where user='root';</code></p>
<p>5º Recargar las tablas de permisos</p>
<p><code>flush privileges</code></p>
<p>6º Por ultimo, parar mysql e iniciarlo de forma normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://preocupao.net/2007/12/18/cambiar-password-de-root-de-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
