在 xampp 中导入数据库时出现这些错误
SQL查询:
<!-- PMA-SQL-ERROR -->
<div class="error"><h1>Error</h1>
<p><strong>SQL query:</strong>
<a href="db_sql.php?sql_query=SHOW+TABLE+STATUS+FROM+%60berty12_embrace%60+WHERE+Name+%3D+%27wp_pTC_logs%27&show_query=1&db=berty12_embrace&token=753b2640358f750ff66cbbe34e72abd6"><span class="nowrap"><img src="themes/dot.gif" title="Edit" alt="Edit" class="icon ic_b_edit" /> Edit</span></a> </p>
<p>
<code class="sql"><pre>
SHOW TABLE STATUS FROM `berty12_embrace` WHERE Name = 'wp_pTC_logs'
</pre></code>
</p>
<p>
<strong>MySQL said: </strong><a href="./url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Ferror-messages-server.html" target="mysql_doc"><img src="themes/dot.gif" title="Documentation" alt="Documentation" class="icon ic_b_help" /></a>
</p>
<code>
#2006 - MySQL server has gone away
</code><br />
</div>
错误:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
Error
SQL query at line 1
最佳答案
该错误是由超出这些 MySQL 设置之一引起的:
wait_timeout
max_allowed_packet
您的主机或服务器人员需要在 MySQL 中增加这些设置。这里有更多信息:
关于mysql - 导入数据库时 PMA-SQL-ERROR,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30381304/