MySQL服务器错误

标签 mysql

我有一个 MySQL 服务器,大约每 10 分钟就会写入一次。它似乎工作正常,但当我几个小时后返回它时,它崩溃了。

来自error.log我有

2017-01-17T13:47:35.315801Z 0 [Warning] Changed limits: max_open_files: 1024 (requested 5000)
2017-01-17T13:47:35.315905Z 0 [Warning] Changed limits: table_open_cache: 431 (requested 2000)
2017-01-17T13:47:35.495187Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp serv$
2017-01-17T13:47:35.497022Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.16-0ubuntu0.16.04.1) starting as process 18742 ...
2017-01-17T13:47:35.505459Z 0 [Note] InnoDB: PUNCH HOLE support available
2017-01-17T13:47:35.505530Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-01-17T13:47:35.505541Z 0 [Note] InnoDB: Uses event mutexes
2017-01-17T13:47:35.505549Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2017-01-17T13:47:35.505558Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.8
2017-01-17T13:47:35.505566Z 0 [Note] InnoDB: Using Linux native AIO
2017-01-17T13:47:35.506116Z 0 [Note] InnoDB: Number of pools: 1
2017-01-17T13:47:35.506338Z 0 [Note] InnoDB: Using CPU crc32 instructions
2017-01-17T13:47:35.508891Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2017-01-17T13:47:35.508951Z 0 [ERROR] InnoDB: mmap(137428992 bytes) failed; errno 12
2017-01-17T13:47:35.508973Z 0 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2017-01-17T13:47:35.508983Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2017-01-17T13:47:35.508994Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2017-01-17T13:47:35.509002Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017-01-17T13:47:35.509011Z 0 [ERROR] Failed to initialize plugins.
2017-01-17T13:47:35.509017Z 0 [ERROR] Aborting

2017-01-17T13:47:35.509026Z 0 [Note] Binlog end
2017-01-17T13:47:35.509098Z 0 [Note] Shutting down plugin 'CSV'
2017-01-17T13:47:35.509118Z 0 [Note] Shutting down plugin 'MyISAM'
2017-01-17T13:47:35.509507Z 0 [Note] /usr/sbin/mysqld: Shutdown complete

这是我从 Python/Django 运行的数据库,我认为这不会产生任何影响。我不知道出了什么问题,但如果我重新启动服务器,它就会启动并正常工作。请您帮忙。

最佳答案

我增加了服务器的大小,它运行良好。我会忍受它

关于MySQL服务器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41698864/

相关文章:

php - 将表或数组添加到每个用户的行中

php - 我的 IF 语句有问题

php - 更新记录时出错:更新多个表sql

mysql - SQL - 获取 "records"在我拥有的字符串列表中没有匹配项

mysql - Postgres 相当于 MySQL 的 BENCHMARK() 函数

mysql - 如何在 Mysql 中连接 2 行,其中某一列是 DIstinct

python - 类型错误 : not all arguments converted during string formatting when inserting with parameters

java - 保持数据库连接始终处于 Activity 状态的正确方法

php - 为多个图像制作类似按钮

mysql - 自增列还是 UNIQUE 约束?