提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等
温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的
[求助] WDCP重装后mysql经常死机,有wordpress网站
采用单apache服务器,数据库使用mv命令移动的。现在一天要死机好几次,已经确认只有mysql死机。下面是mysql日志
- 2019-06-28 16:52:13 10299 [Note] InnoDB: Using atomics to ref count buffer pool pages
- 2019-06-28 16:52:13 10299 [Note] InnoDB: The InnoDB memory heap is disabled
- 2019-06-28 16:52:13 10299 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
- 2019-06-28 16:52:13 10299 [Note] InnoDB: Memory barrier is not used
- 2019-06-28 16:52:13 10299 [Note] InnoDB: Compressed tables use zlib 1.2.11
- 2019-06-28 16:52:13 10299 [Note] InnoDB: Not using CPU crc32 instructions
- 2019-06-28 16:52:13 10299 [Note] InnoDB: Initializing buffer pool, size = 128.0M
- InnoDB: mmap(136019968 bytes) failed; errno 12
- 2019-06-28 16:52:13 10299 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
- 2019-06-28 16:52:13 10299 [ERROR] Plugin 'InnoDB' init function returned error.
- 2019-06-28 16:52:13 10299 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
- 2019-06-28 16:52:13 10299 [ERROR] Unknown/unsupported storage engine: InnoDB
- 2019-06-28 16:52:13 10299 [ERROR] Aborting
复制代码
my.cnf配置如下:
- # For advice on how to change settings please see
- # http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
- [mysqld]
- #add @190623 by alber https://www.7hubei.com/272.html
- federated
- innodb_force_recovery=1
- # Remove leading # and set to the amount of RAM for the most important data
- # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
- # innodb_buffer_pool_size = 128M
- # Remove leading # to turn on a very important data integrity option: logging
- # changes to the binary log between backups.
- # log_bin
- # These are commonly set, remove the # and set as required.
- # basedir = .....
- # datadir = /var/lib/mysql
- # port = .....
- # server_id = .....
- # socket = /var/lib/mysql/mysql.sock
- # Remove leading # to set options mainly useful for reporting servers.
- # The server defaults are faster for transactions and fast SELECTs.
- # Adjust sizes as needed, experiment to find the optimal values.
- # join_buffer_size = 128M
- # sort_buffer_size = 2M
- # read_rnd_buffer_size = 2M
- performance_schema_max_table_instances=400
- table_definition_cache=400
- table_open_cache=256
- sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
复制代码
求大神指点 |