Subject:
'|ec_salt'| in '|field list'| ) 3 =>|1054数据库_511
[Print This Page]
Author:
cshiji003
Time:
2016-9-23 20:37
Subject:
'|ec_salt'| in '|field list'| ) 3 =>|1054数据库_511
'ec_salt' in 'field list' ) [3] =>1054数据库
'ec_salt' in 'field list' ) [3] =>1054数据库
MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT `ec_salt` FROM `qdm0240194_db`.`jindong_admin_user`WHERE user_name = 'admin' ) [2] => Array ( [error] => Unknown column 'ec_salt' in 'field list' ) [3] => Array ( [errno] => 1054 ) )
出现报错原因程序是2.7.3而数据库是2.7.2,那么需要升级下数据库
在后台SQL查询或者在数据库管理面板最好有phpmyadmin管理工具里点击SQL查询
这样的查询区域查询以下语句:
-- `ecs_shipping`修改
ALTER TABLE `ecs_shipping` ADD `shipping_order` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0';
--`ecs_virtual_card`修改
ALTER TABLE `ecs_virtual_card` CHANGE `crc32` `crc32` VARCHAR( 12 ) NOT NULL DEFAULT '0';
--`ecs_users`修改
ALTER TABLE `ecs_users` ADD `ec_salt` VARCHAR( 10 ) NULL AFTER `salt` ;
--`ecs_admin_user`修改
ALTER TABLE `ecs_admin_user` ADD `ec_salt` VARCHAR( 10 ) NULL AFTER `user_name` ;
如果有类似于下图报错则不需要执行该语句
Welcome to CnPack Forum (http://bbs.cnpack.org/)
Powered by Discuz! 5.0.0