分享

写回答

发帖

[提问] 为什么导入数据库一直失败?

GoDaddy GoDaddy 890 人阅读 | 3 人回复

发表于 2011-12-8 13:34:03 | 显示全部楼层 |阅读模式

我用godaddy的控制面板导入数据库,但是一直不成功导致我的 后台许多功能都出错。
common.inc.php链接配置参数我都改了
错误如下:
未标题-1111111.jpg


我反馈给godaddy,得到的回答是:

Thank you for contacting Hosting Support. In regards to your hosting account for *********:

I understand you are having problems importing / restoring your .sql files into the your databases. The problem with the restore is being caused by improper MySQL syntax in the .sql files. Typically, comment lines in MySQL syntax are started by "--" (double dash). The comment lines in your .sql files appear to be missing these characters and the database is trying to parse these lines as code.

You may want to review the MySQL support forums at http://forums.mysql.com/ for additional help with MySQL scripting and syntax.

Please contact us if you have any further issues.

回答|共 3 个

暮木娃娃

发表于 2011-12-8 13:38:23 | 显示全部楼层

你是用SQL 语句导入的吗?说是你的SQL语句有问题。双破折号那里应该是注释行,但是你的被当成SQL语句去执行,所以导致了错误。你检查下你的SQL语句,有没有问题,中英文方面都要看看
回复 支持 反对

使用道具 举报

Blade

发表于 2011-12-8 14:21:56 | 显示全部楼层

我是直接导入SQL格式的文件,但是给我这个文件的网建公司保证说这个文件绝对没有问题,肯定是我导入的方式不对
回复 支持 反对

使用道具 举报

暮木娃娃

发表于 2011-12-8 14:34:36 | 显示全部楼层

重新导入一次,注意数据库编码格式,两边数据库的版本是否一致
如果不行,你可以考虑将Godaddy客服的话发给网建公司,让他们再检查一遍。不然这种两边互相说不是自己的问题,最后问题很难解决
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则