提問三步曲: 提問先看教程/FAQ索引(wdcp,wdcp_v3,一鍵包)及搜索,會讓你更快解決問題
1 提供詳細,如系統(tǒng)版本,wdcp版本,軟件版本等及錯誤的詳細信息,貼上論壇或截圖發(fā)論壇
2 做過哪些操作或改動設置等
溫馨提示:信息不詳,很可能會沒人理你!論壇有教程說明的,也可能沒人理!因為,你懂的
[求助] WDCP重裝后mysql經(jīng)常死機,有wordpress網(wǎng)站
采用單apache服務器,數(shù)據(jù)庫使用mv命令移動的,F(xiàn)在一天要死機好幾次,已經(jīng)確認只有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
復制代碼
求大神指點 |