ecshop2.7.3的错误1017怎么解决,大神请进

2016-07-07 15:12 来源:www.chinab4c.com 作者:ecshop专家

MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT userid, adminid, user_name, user_rank, discount, email, data, expiry FROM `net90464534`.`ecs_sessi**` WHERE sesskey = '655ba0cdd255087a000389efddf47da7' ) [2] => Array ( [error] => Can't find file: './net90464534/ecs_sessi**.frm' (errno: 13) ) [3] => Array ( [errno] => 1017 ) )

回答:


貌似缺少一个数据表 ecs_sessi**

利用下面的SQL语句重新创建这个表即可
  1. CREATE TABLE IF NOT EXISTS `ecs_sessi**` (
  2. `sesskey` char(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
  3. `expiry` int(10) unsigned NOT NULL DEFAULT '0',
  4. `userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  5. `adminid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  6. `ip` char(15) NOT NULL DEFAULT '',
  7. `user_name` varchar(60) NOT NULL,
  8. `user_rank` tinyint(3) NOT NULL,
  9. `discount` decimal(3,2) NOT NULL,
  10. `email` varchar(60) NOT NULL,
  11. `data` char(255) NOT NULL DEFAULT '',
  12. PRIMARY KEY (`sesskey`),
  13. KEY `expiry` (`expiry`)
  14. ) ENGINE=MEMORY DEFAULT CHARSET=utf8;

复制代码

这个是表结构被损坏了。要修复

2楼正解。。

顶一下:victory::victory: