<?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>Repair Mysql Table Archives - Pereira, Thiago Santos.</title>
	<atom:link href="https://thiagosantos.com/blog/tag/repair-mysql-table/feed/" rel="self" type="application/rss+xml" />
	<link>https://thiagosantos.com/blog/tag/repair-mysql-table/</link>
	<description>the fun of code.</description>
	<lastBuildDate>Thu, 15 Sep 2011 13:16:33 +0000</lastBuildDate>
	<language>pt-BR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5</generator>
	<item>
		<title>WordPress &#8211; Error establishing a database connection : for repair table</title>
		<link>https://thiagosantos.com/blog/145/php/wordpress-error-establishing-a-database-connection/</link>
					<comments>https://thiagosantos.com/blog/145/php/wordpress-error-establishing-a-database-connection/#comments</comments>
		
		<dc:creator><![CDATA[Pereira, Thiago Santos]]></dc:creator>
		<pubDate>Fri, 17 Sep 2010 13:54:12 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Error establishing a database connection]]></category>
		<category><![CDATA[Repair Mysql Table]]></category>
		<category><![CDATA[Repair table]]></category>
		<category><![CDATA[SQL REPAIR]]></category>
		<guid isPermaLink="false">http://www.thiagosantos.com/blog/?p=145</guid>

					<description><![CDATA[<p>Parece que um BUG no Wordpress atacou uma galera tirando o seus blog e acesso ao WP-admin, aconteceu com a Catia.<br />
Juntos achamos o problema sem muito esforço a tabela xxx_options está corrompida, sendo essa tabela fundamental para o Wordpress.</p>
<p>The post <a href="https://thiagosantos.com/blog/145/php/wordpress-error-establishing-a-database-connection/">WordPress &#8211; Error establishing a database connection : for repair table</a> appeared first on <a href="https://thiagosantos.com/blog">Pereira, Thiago Santos.</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>O mundo não acabou!!<br />
Há <del datetime="2011-09-15T12:29:17+00:00">uma </del> duas <del datetime="2011-09-15T12:29:17+00:00">solução</del> soluções!</p>
<p><span style="color: #000000;"><strong>Primeira opção</strong></span><br />
Se essa mensagem apareceu para você o primeiro item a ser verificado é o usuário, senha, banco e o host do MySQL que você instalou o WordPress que pode ser encontrado no wp-config.php como segue a imagem em anexo. Se você fez uma migração deva dar uma atenção especial a esse ponto.</p>
<p><a href="http://thiagosantos.com/blog/145/php/wordpress-error-establishing-a-database-connection/attachment/wordpress-wp-config-mysql/" rel="attachment wp-att-231"><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-231" title="wordpress.wp-config.mysql" src="http://thiagosantos.com/blog/wp-content/uploads//2010/09/wordpress.wp-config.mysql_.jpg" alt="" width="572" height="231" srcset="https://thiagosantos.com/blog/wp-content/uploads/2010/09/wordpress.wp-config.mysql_.jpg 572w, https://thiagosantos.com/blog/wp-content/uploads/2010/09/wordpress.wp-config.mysql_-300x121.jpg 300w, https://thiagosantos.com/blog/wp-content/uploads/2010/09/wordpress.wp-config.mysql_-500x201.jpg 500w" sizes="(max-width: 572px) 100vw, 572px" /></a></p>
<p><strong>Segunda opção</strong><br />
Parece que um BUG no WordPress atacou uma galera tirando o seus blog e acesso ao WP-admin, aconteceu com a <a href="http://oblog.gaiuss.com">Catia</a>.<br />
Juntos achamos o problema sem muito esforço a tabela xxx_options está corrompida, sendo essa tabela fundamental para o WordPress.</p>
<p><span id="more-145"></span></p>
<p>Para resolver isso basta acessar o seu cliente MySQL preferido. No meu caso vou usar o phpMyAdmin. Acesse o phpMyAdmin no painel de controle do seu host, ir em SQL e dar o seguinte comando  copiar o comando abaixo, colar no campo do SQL, e clicar em EXECUTAR, lembrando de trocar o <strong>xxx</strong> pelo prefixo da sua tabela:</p>
<blockquote><p><strong>REPAIR TABLE xxx_options;</strong></p>
<p><strong><br />
</strong></p></blockquote>
<p>Essa query do MySQL repara a tabela caso ela tenha sido corrompida. Ainda não sabemos como ela foi corrompida.<br />
Para aqueles que quiserem saber mais sobre o REPAIR TABLE pode dar uma olhadinha aqui na documentação do MySQL <a href="http://dev.mysql.com/doc/refman/5.1/en/repair-table.html">http://dev.mysql.com/doc/refman/5.1/en/repair-table.html</a>.</p>
<p>Atualizado: 15/09/2011<br />
<del>Atualizado: 20/10/2010 .</del><br />
Obrigado a Tarcicio Andrade e Chavão.</p>
<p style="text-align: center;"><em><strong>English</strong></em></p>
<p>It&#8217;s not the end!!<br />
There are two solutions</p>
<p><strong>First option</strong><br />
If you saw this message trying to access your WordPress, the first thing to do is take a look inside your wp-config.php and check if the username, password, database and hostname is the same of your WordPress installation database.<br />
This normally happens when you migrate de wordpress from a server to another, or when you just change the MySQL database.</p>
<p><a href="http://thiagosantos.com/blog/145/php/wordpress-error-establishing-a-database-connection/attachment/wordpress-wp-config-mysql/" rel="attachment wp-att-231"><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-231" title="wordpress.wp-config.mysql" src="http://thiagosantos.com/blog/wp-content/uploads//2010/09/wordpress.wp-config.mysql_.jpg" alt="" width="572" height="231" srcset="https://thiagosantos.com/blog/wp-content/uploads/2010/09/wordpress.wp-config.mysql_.jpg 572w, https://thiagosantos.com/blog/wp-content/uploads/2010/09/wordpress.wp-config.mysql_-300x121.jpg 300w, https://thiagosantos.com/blog/wp-content/uploads/2010/09/wordpress.wp-config.mysql_-500x201.jpg 500w" sizes="(max-width: 572px) 100vw, 572px" /></a></p>
<p>&nbsp;</p>
<p><strong>Second option</strong><br />
A BUG in WordPress has down a lot of blog and theirs access to WP-ADMIN, happens with Catia.<br />
Together we found easy found the problem the table xxx_option was corrupted, been this table critic for WordPress.</p>
<p>To recovery this table you must access any mysql client, such as phpMyAdmin, and then execute the following command, changing the xxx for your WordPress table prefix:</p>
<blockquote><p><strong>REPAIR TABLE xxx_options;</strong></p></blockquote>
<p>Simple? very!<br />
If you know why this happened comment please.</p>
<p>A big thank to Tarcicio Andrade e Chavão.</p>
<p>The post <a href="https://thiagosantos.com/blog/145/php/wordpress-error-establishing-a-database-connection/">WordPress &#8211; Error establishing a database connection : for repair table</a> appeared first on <a href="https://thiagosantos.com/blog">Pereira, Thiago Santos.</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://thiagosantos.com/blog/145/php/wordpress-error-establishing-a-database-connection/feed/</wfw:commentRss>
			<slash:comments>27</slash:comments>
		
		
			</item>
	</channel>
</rss>
