错误:未知的标点字符串@ 7

时间:2011-01-22 02:09:36

标签: sql mysql database data-structures

我正在尝试将旧的phpBB论坛数据库移动到我的新服务器上。因此,当我下载.sql文件时,我尝试通过phpMyAdmin面板将其上传到新数据库。这是我收到的错误:

<pre>Error

There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

ERROR: Unknown Punctuation String @ 7
STR: />
SQL: 

<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at webiste/includes/acp/acp_database.php:593) in <b>website/includes/functions.php</b> on line <b>3582</b><br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"><head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><title>General Error</title><style type="text/css">
/* <![CDATA[ */
* { margin: 0;


SQL query:


Warning: Cannot modify header information - headers already sent by (output started at /homepages/24/d172572039/htdocs/GhostsofOnyx/includes/acp/acp_database.php:593) in /homepages/24/d172572039/htdocs/GhostsofOnyx/includes/functions.php on line 3582<code>

我需要更改或修复哪些内容才能完全上传文件?谢谢你的帮助!

1 个答案:

答案 0 :(得分:1)

第7行你有

* { margin: 0;

;符号描述了SQL查询的结束。显然,在这种情况下,如果这是查询的结束,服务器不知道该怎么做,因此错误。

您需要指定一个新的分隔符(我经常使用|),以便phpMyAdmin知道脚本何时完成。