-1

我正在尝试从生产服务器下载 Drupal 7 数据库。不幸的是,它在文件的最后显示 HTML 标记。

    <!-- PMA-SQL-ERROR -->
        <div class="error"><h1>Error</h1>
    <p><strong>SQL query:</strong>
    <a href="tbl_sql.php?sql_query=SHOW+TABLE+STATUS+FROM+%60i2819657_drup1%60+LIKE+%27login_destination%27&amp;show_query=1&amp;db=i2819657_drup1&amp;table=login_destination&amp;token=98a3c2701c0cfec8e0843f05dc044f9e"><span class="nowrap"><img src="themes/dot.gif" title="Edit" alt="Edit" class="icon ic_b_edit" /> Edit</span></a>    </p>
    <p>
    <span class="syntax"><span class="inner_sql"><a href="./url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.6%2Fen%2Fshow.html&amp;token=98a3c2701c0cfec8e0843f05dc044f9e" target="mysql_doc"><span class="syntax_alpha syntax_alpha_reservedWord">SHOW</span></a>  <span class="syntax_alpha syntax_alpha_reservedWord">TABLE</span>  <span class="syntax_alpha syntax_alpha_reservedWord">STATUS</span>  <span class="syntax_alpha syntax_alpha_reservedWord">FROM</span>  <span class="syntax_quote syntax_quote_backtick">`i2819657_drup1`</span>  <a href="./url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.6%2Fen%2Fstring-comparison-functions.html%23operator_like&amp;token=98a3c2701c0cfec8e0843f05dc044f9e" target="mysql_doc"><span class="syntax_alpha syntax_alpha_reservedWord">LIKE</span></a>  <span class="syntax_quote syntax_quote_single">'login_destination'</span></span></span>
    </p>
    <p>
        <strong>MySQL said: </strong><a href="./url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.6%2Fen%2Ferror-messages-server.html&amp;token=98a3c2701c0cfec8e0843f05dc044f9e" 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>

有人可以帮帮我吗?

4

1 回答 1

0

我自己找到了解决方案。

  1. 在您的网络托管 cPanel 帐户的根目录中创建php5.ini文件。
  2. 将此行放入该文件中。

    mysql.connect_timeout = 120

  3. 现在注销您的 cPanel 帐户并再次登录。

  4. 前往 PhpMyAdmin 导出备份文件并下载。
  5. 一旦下载。在任何文本编辑器中打开此文件并向下翻页以验证是否没有 HTML 标记。这意味着问题已解决。

谢谢

于 2017-06-17T20:25:43.570 回答