标题:
[求助]
WDCP重装后mysql经常死机,有wordpress网站
[打印本页]
作者:
bb120
时间:
2019-6-28 16:45
标题:
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
复制代码
求大神指点
作者:
admin
时间:
2019-6-28 22:59
内存有溢出,不支持innodb引擎
作者:
bb120
时间:
2019-6-29 17:28
回复
2#
admin
能麻烦问一下什么解决这个?
欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/)
Powered by Discuz! 7.2