`
dzl84394
  • 浏览: 57174 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

ecshop真挫,开个文章记录问题

 
阅读更多

数据库报错: 121002 1:34:24 [ERROR] /usr/libexec/mysqld: The table 'mmbk_sessions' is full

mysql配置文件 /etc/my.cnf ,日志地址/var/log/mysqld.log

查看ec_sessions太大,删掉truncate table ecs_sessions DELETE FROM mmbk_sessions

就是修改 includes/cls_session.php的 var $max_life_time =5400;

就是修改/etc/my.cnf

tmp_table_size =256M

max_heap_table_size= 256M

----------------------------

mysql 占cpu太多

Linux下启用MySQL慢查询
MySQL在linux系统中的配置文件一般是是my.cnf找到[mysqld]下面加上

log-slow-queries=/data/mysqldata/slowquery.log
long_query_time=2

后发现慢查询都是原来的进销存带来的,这是个问题,进销存要重构

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics