【问题标题】:PMA-SQL-ERROR while importing database导入数据库时​​出现 PMA-SQL-ERROR
【发布时间】:2015-08-03 13:37:38
【问题描述】:

在 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&amp;show_query=1&amp;db=berty12_embrace&amp;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 - 您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,以获取在 ' 附近使用的正确语法

错误

第 1 行的 SQL 查询

【问题讨论】:

    标签: mysql sql-server xampp


    【解决方案1】:

    该错误是由超出以下 MySQL 设置之一引起的:

    wait_timeout
    max_allowed_packet
    

    您的主机或服务器人员需要在 MySQL 中增加这些设置。这里有更多信息:

    http://dev.mysql.com/doc/refman/5.1/en/gone-away.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-19
      • 2013-10-02
      • 2018-06-13
      • 2013-12-19
      • 1970-01-01
      • 1970-01-01
      • 2018-12-05
      相关资源
      最近更新 更多