<?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>Vive-libre.com &#187; USUARIOS</title>
	<atom:link href="http://vive-libre.com/blog/tag/usuarios/feed/" rel="self" type="application/rss+xml" />
	<link>http://vive-libre.com/blog</link>
	<description>Un espacio, para la libertad.</description>
	<lastBuildDate>Thu, 24 Dec 2009 18:25:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Como cambiar la contraseña de MySQL</title>
		<link>http://vive-libre.com/blog/2008/04/06/como-cambiar-la-contrasena-de-mysql/</link>
		<comments>http://vive-libre.com/blog/2008/04/06/como-cambiar-la-contrasena-de-mysql/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 22:27:23 +0000</pubDate>
		<dc:creator>yovany</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[UBUNTU]]></category>
		<category><![CDATA[USUARIOS]]></category>

		<guid isPermaLink="false">http://vive-libre.com/blog/2008/04/06/como-cambiar-la-contrasena-de-mysql/</guid>
		<description><![CDATA[Hay veces que al instalar el mysql, tenemos el problema de
Error
MySQL ha dicho:
#1045 - Access denied for user: 'user@localhost' (Using password: YES)
Si olvidamos la contrasena o de plano nunca la tuvimos y necesitamos logearnos en mysql. La solucion es la siguiente.
Primero hay que deterner el servidor de mysql
PLAIN TEXT
CODE:




/etc/init.d/mysql stop 






Despues iniciaremos el servidor en [...]]]></description>
			<content:encoded><![CDATA[<p>Hay veces que al instalar el mysql, tenemos el problema de</p>
<p>Error<br />
MySQL ha dicho:</p>
<p>#1045 - Access denied for user: 'user@localhost' (Using password: YES)</p>
<p>Si olvidamos la contrasena o de plano nunca la tuvimos y necesitamos logearnos en mysql. La solucion es la siguiente.</p>
<p>Primero hay que deterner el servidor de mysql</p>
<div class="igBar"><span id="lcode-4"><a href="#" onclick="javascript:showPlainTxt('code-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-4">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">/etc/init.<span style="">d</span>/mysql stop </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Despues iniciaremos el servidor en modo seguro, ignorando las tablas de permisos</p>
<p>/usr/bin/mysqld_safe --skip-grant-tables &amp;</p>
<p>Con esto podemos entrar a mysq, le indicamos que la tabla a usar es mysql y ejecutamos una consulta que nos permitira cambiar la contrasena actual del usuario que necesitemos , despues de ejecutar la consulta, reiniciamos los privilegios, por ultimo salimos.</p>
<div class="igBar"><span id="lcode-5"><a href="#" onclick="javascript:showPlainTxt('code-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-5">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mysql</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">use mysql;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">UPDATE user SET Password=PASSWORD<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'nueva_contraseña'</span><span style="color:#006600; font-weight:bold;">&#41;</span> WHERE User=\<span style="color:#CC0000;">"root<span style="color:#000099; font-weight:bold;">\"</span>;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#CC0000;">flush privileges;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#CC0000;">exit </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Y solo nos queda detener el de nuevo el servidoe de mysql y volverlo a iniciar</p>
<div class="igBar"><span id="lcode-6"><a href="#" onclick="javascript:showPlainTxt('code-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-6">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">/etc/init.<span style="">d</span>/mysql stop</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">/etc/init.<span style="">d</span>/mysql start </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Esto lo he provado en ubuntu 7.4 y 7.10</p>
]]></content:encoded>
			<wfw:commentRss>http://vive-libre.com/blog/2008/04/06/como-cambiar-la-contrasena-de-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
