raksmart活动促销

分享

写回答

发帖

[提问] 点"添加新商品" 的时候显示连接不上数据库怎么办?

HostMonster HostMonster 975 人阅读 | 1 人回复

发表于 2009-3-7 08:52:15 | 显示全部楼层 |阅读模式

我上传新商品时会出现这样的错误,
MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => INSERT INTO `nikebaba_ec21babaecshop`.`ecs_goods` (goods_name, goods_name_style, goods_sn, cat_id, brand_id, shop_price, market_price, is_promote, promote_price, promote_start_date, promote_end_date, goods_img, goods_thumb, original_img, keywords, goods_brief, seller_note, goods_weight, goods_number, warn_number, integral, give_integral, is_best, is_new, is_hot, is_on_sale, is_alone_sale, goods_desc, add_time, last_update, goods_type, rank_integral)VALUES ('2222222222222222222222222', '+', 'EC21baba-031373', '786', '', '20', '24', '0','0', '0', '0', 'images/200903/1236411122691919735.jpg', 'images/200903/1236411122903858611.jpg', 'images/200903/1236411121013980536.JPG', '', '', '', '10', '100', '1', '0', '-1', '0', '0', '0', '1', '1', '', '1236411122', '1236411122', '1', '-1') ) [2] => Array ( [error] => Duplicate entry '31372' for key 1 ) [3] => Array ( [errno] => 1062 ) )

这是为什么?请高手帮忙一下,谢谢

回答|共 1 个

一路同行

发表于 2009-3-7 11:48:33 | 显示全部楼层

什么程序?安装的时候有没有问题?
修复一下数据库试试
您需要登录后才可以回帖 登录 | 注册

本版积分规则

HostMonster讨论

HostMonster
优惠码:优惠链接
介绍:HostMonster美国主机商成立于1996年,总部位于犹他州普罗沃,提供主机托管服务,在业内有比较有实力,而且口碑也不错。HostMonster美国主机性价比较高,而且基本不会额外收取费用,其无限型方案支持无限磁盘空间,无限带宽和电子邮件帐户,提供免费域名1个。
查看更多

wtfql

发表主题