<?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>dump Archives - Dicas de PHP</title>
	<atom:link href="https://dicasdephp.com.br/tags/dump/feed/" rel="self" type="application/rss+xml" />
	<link>https://dicasdephp.com.br/tags/dump/</link>
	<description>PHP de um jeito muito fácil!</description>
	<lastBuildDate>Sun, 27 Mar 2022 01:57:07 +0000</lastBuildDate>
	<language>pt-BR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>
	<item>
		<title>MySQL error: Table storage engine for &#8216;catalog_product_relation&#8217; doesn’t have this option</title>
		<link>https://dicasdephp.com.br/mysql-error-table-storage-engine-for-catalog_product_relation-doesnt-have-this-option/</link>
		
		<dc:creator><![CDATA[dicasdephp]]></dc:creator>
		<pubDate>Tue, 20 Dec 2016 01:20:40 +0000</pubDate>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[dump]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[mysql error]]></category>
		<guid isPermaLink="false">http://dicasdephp.com.br/?p=751</guid>

					<description><![CDATA[<p>Está com esse problema para executar um script SQL no MySQL? O que está ocorrendo é que de definição da tabela não é compatível com sua instalação do MySQL. Esse problema ocorre principalmente ao realizar mysqldump na versão 5.5.x de um banco de dados do Magento, e ao importar em 5.7.x, não ter a opção ... <a title="MySQL error: Table storage engine for &#8216;catalog_product_relation&#8217; doesn’t have this option" class="read-more" href="https://dicasdephp.com.br/mysql-error-table-storage-engine-for-catalog_product_relation-doesnt-have-this-option/" aria-label="More on MySQL error: Table storage engine for &#8216;catalog_product_relation&#8217; doesn’t have this option">Ler mais</a></p>
<p>The post <a href="https://dicasdephp.com.br/mysql-error-table-storage-engine-for-catalog_product_relation-doesnt-have-this-option/">MySQL error: Table storage engine for &#8216;catalog_product_relation&#8217; doesn’t have this option</a> appeared first on <a href="https://dicasdephp.com.br">Dicas de PHP</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Está com esse problema para executar um script SQL no MySQL? O que está ocorrendo é que de definição da tabela não é compatível com sua instalação do MySQL.</p>
<p>Esse problema ocorre principalmente ao realizar mysqldump na versão 5.5.x de um banco de dados do Magento, e ao importar em 5.7.x, não ter a opção para criação da tabela.</p>
<p>O seguinte erro ocorre ao executar o script SQL:</p>
<blockquote><p>ERROR 1031 (HY000) at line 3002: Table storage engine for ‘catalog_product_relation’ doesn’t have this option</p></blockquote>
<h2>O problema</h2>
<p>Isso provavelmente se deve à opção de tabela que você tem em seu CREATE TABLE DDL:</p>
<pre>ROW_FORMAT = FIXED</pre>
<p>Para verificar onde está o problema no scritp, pode executar no terminal o seguinte comando:</p>
<pre>cat magento.sql | grep '=FIXED'</pre>
<p>Somente as linhas que contém a palavra FIXED irão retornar. Para corrigir o problema, podemos realizar uma substituição através de REGEX, como nos exemplos abaixo.</p>
<h2>Solução 1</h2>
<p>Essa solução pode funcionar em SO linux, mas no Mac OSX apresentam erros.</p>
<pre>sed -i 's/ROW_FORMAT=FIXED//g' magento.sql</pre>
<h2>Solução 2</h2>
<p>Para funcionar no terminal do Mac OSX, utilize o comando abaixo:</p>
<pre>LC_ALL=C sed -i '' 's/ROW_FORMAT=FIXED//g' magento.sql</pre>
<p>Depois, é só realizar a importação do dump sem problemas!</p>
<p>The post <a href="https://dicasdephp.com.br/mysql-error-table-storage-engine-for-catalog_product_relation-doesnt-have-this-option/">MySQL error: Table storage engine for &#8216;catalog_product_relation&#8217; doesn’t have this option</a> appeared first on <a href="https://dicasdephp.com.br">Dicas de PHP</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
