WDlinux官方论坛's Archiver

bb120 发表于 2019-6-28 16:45

WDCP重装后mysql经常死机,有wordpress网站

采用单apache服务器,数据库使用mv命令移动的。现在一天要死机好几次,已经确认只有mysql死机。下面是mysql日志
[code]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[/code]



my.cnf配置如下:
[code]# 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
[/code]


求大神指点

admin 发表于 2019-6-28 22:59

内存有溢出,不支持innodb引擎

bb120 发表于 2019-6-29 17:28

[b]回复 [url=http://wdlinux.cn/bbs/redirect.php?goto=findpost&pid=110653&ptid=63874]2#[/url] [i]admin[/i] [/b]

能麻烦问一下什么解决这个?

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.