第一种错误: MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => INSERT INTO `test`.`ecs_sessions` (sesskey, expiry, ip, data) VALUES ('8a3107988bf98cc9a5079fdfbe766120', '1278128679', '127.0.0.1', 'a:0:{}') ) [2] => Array ( [error] => Table 'test.ecs_sessions' doesn't exist ) [3] => Array ( [errno] => 1146 ) )
MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => INSERT INTO `cc`.`ecs_sessions` (sesskey, expiry, ip, data) VALUES ('4b5c9bb5f23d7a1cebd1c1f4ad6682ee', '1270728928', '218.74.203.161', 'a:0:{}') ) [2] => Array ( [error] => The table 'ecs_sessions' is full ) [3] => Array ( [errno] => 1114 ) ) 提示The table 'ecs_sessions' is full 以上两种情况的解决办法如下: 1.直接清空session表 可以到后台数据库管理-sql 查询里执行这个语句 delete from ecs_session 清理完缓存就发现不会报错了 2.同时可以设置一下session的失效时间 打开Includes下cls_session.php 修改过期时间,数值改小就可以了 var $max_life_time = 1000; // SESSION 过期时间 这样就OK了。希望对大家有所帮助。
|