当我尝试运行我的mysql容器时,它会启动并在1或2秒后自动停止。我之前从未遇到过这个问题。以下是容器的日志:
180124 8:14:18 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
180124 8:14:18 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
180124 8:14:18 [Note] mysqld (mysqld 5.5.59) starting as process 1 ...
180124 8:14:18 [ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys'
180124 8:14:18 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
180124 8:14:18 [Note] Plugin 'FEDERATED' is disabled.
180124 8:14:18 InnoDB: The InnoDB memory heap is disabled
180124 8:14:18 InnoDB: Mutexes and rw_locks use GCC atomic builtins
180124 8:14:18 InnoDB: Compressed tables use zlib 1.2.3
180124 8:14:18 InnoDB: Using Linux native AIO
180124 8:14:18 InnoDB: Initializing buffer pool, size = 128.0M
180124 8:14:18 InnoDB: Completed initialization of buffer pool
180124 8:14:18 InnoDB: highest supported file format is Barracuda.
180124 8:14:18 InnoDB: Waiting for the background threads to start
180124 8:14:19 InnoDB: 5.5.59 started; log sequence number 32263726
180124 8:14:19 [ERROR] Aborting
180124 8:14:19 InnoDB: Starting shutdown...
180124 8:14:20 InnoDB: Shutdown completed; log sequence number 32263726
180124 8:14:20 [Note]
在那个问题之前,我用apt-get在我的容器中安装了一个新的包,并且my.cnf文件有一些问题,但我认为这不是我当前问题的原因(也许我错了)。 / p>
此容器包含我不想丢失的数据。谢谢。