use*_*127 6 mysql database docker
我在 docker 中运行 mysql,它/var/lib/mysql安装在 HOST 上。
一切正常。然后我将 docker 从 1.4 升级到 1.5 。
我重建了 mysql 映像,但 /var/lib/mysql 保持不变。
现在,每当我启动 conatiner 时,conatiner 都会在 5 分钟后退出。日志文件坐在这个
2015-01-03 09:26:47 353 [Note] Plugin 'FEDERATED' is disabled.
2015-01-03 09:26:47 353 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-01-03 09:26:47 353 [Note] InnoDB: The InnoDB memory heap is disabled
2015-01-03 09:26:47 353 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-01-03 09:26:47 353 [Note] InnoDB: Compressed tables use zlib 1.2.8
2015-01-03 09:26:47 353 [Note] InnoDB: Using Linux native AIO
2015-01-03 09:26:47 353 [Note] InnoDB: Using CPU crc32 instructions
2015-01-03 09:26:47 353 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-01-03 09:26:47 353 [Note] InnoDB: Completed initialization of buffer pool
2015-01-03 09:26:47 353 [Note] InnoDB: Highest supported file format is Barracuda.
2015-01-03 09:26:51 353 [Note] InnoDB: 128 rollback segment(s) are active.
2015-01-03 09:26:51 353 [Note] InnoDB: Waiting for purge to start
2015-01-03 09:26:51 353 [Note] InnoDB: 5.6.19 started; log sequence number 1625977
2015-01-03 09:26:51 353 [Note] Binlog end
2015-01-03 09:26:51 353 [Note] InnoDB: FTS optimize thread exiting.
2015-01-03 09:26:51 353 [Note] InnoDB: Starting shutdown...
2015-02-13 09:08:02 1106 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2015-02-13 09:08:02 510 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2015-02-13 09:08:02 510 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2015-02-13 09:08:03 1106 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2015-02-13 09:08:03 1106 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2015-02-13 09:08:03 510 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2015-02-13 09:08:03 510 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2015-02-13 09:08:04 1106 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2015-02-13 09:08:04 1106 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
Run Code Online (Sandbox Code Playgroud)
小智 5
ls -la:-rw-r----- 1 999 999 56 \xd0\xb0\xd0\xbf\xd1\x80 27 00:08 auto.cnf\n-rw-r----- 1 999 999 0 \xd0\xbc\xd0\xb0\xd1\x8f 20 21:51 binlog.index\n-rw------- 1 999 999 1679 \xd0\xb0\xd0\xbf\xd1\x80 27 00:08 ca-key.pem\n-rw-r--r-- 1 999 999 1107 \xd0\xb0\xd0\xbf\xd1\x80 27 00:08 ca.pem\n-rw-r--r-- 1 999 999 1107 \xd0\xb0\xd0\xbf\xd1\x80 27 00:08 client-cert.pem\n-rw------- 1 999 999 1675 \xd0\xb0\xd0\xbf\xd1\x80 27 00:08 client-key.pem\ndrwxr-x--- 2 999 999 4096 \xd0\xb8\xd1\x8e\xd0\xbd 3 22:06 default\n-rw-r----- 1 999 999 14730 \xd0\xbc\xd0\xb0\xd1\x8f 29 22:14 ib_buffer_pool\n-rw-r----- 1 999 999 79691776 \xd0\xb8\xd1\x8e\xd0\xbd 6 08:49 ibdata1\n-rw-r----- 1 999 999 50331648 \xd0\xb8\xd1\x8e\xd0\xbd 6 08:49 ib_logfile0\n-rw-r----- 1 999 999 50331648 \xd0\xb8\xd1\x8e\xd0\xbd 6 08:49 ib_logfile1\n-rw-r----- 1 999 999 146800640 \xd0\xb8\xd1\x8e\xd0\xbd 5 22:53 ibtmp1\ndrwxr-x--- 2 999 999 4096 \xd0\xb0\xd0\xbf\xd1\x80 27 00:08 mysql\ndrwxr-x--- 2 999 999 4096 \xd0\xb0\xd0\xbf\xd1\x80 27 00:08 performance_schema\n-rw------- 1 999 999 1679 \xd0\xb0\xd0\xbf\xd1\x80 27 00:08 private_key.pem\n-rw-r--r-- 1 999 999 451 \xd0\xb0\xd0\xbf\xd1\x80 27 00:08 public_key.pem\n-rw-r--r-- 1 999 999 1107 \xd0\xb0\xd0\xbf\xd1\x80 27 00:08 server-cert.pem\n-rw------- 1 999 999 1679 \xd0\xb0\xd0\xbf\xd1\x80 27 00:08 server-key.pem\ndrwxr-x--- 2 999 999 12288 \xd0\xb0\xd0\xbf\xd1\x80 27 00:08 sys\nRun Code Online (Sandbox Code Playgroud)\n\n就我而言,这是用户999
\n\n2.尝试ps -ef | grep mysqld
999 22177 22138 0 \xd0\xbc\xd0\xb0\xd1\x8f30 ? 00:09:25 mysqld\nromiras 29164 6344 0 18:12 pts/2 00:00:00 grep --color=auto mysqld\nRun Code Online (Sandbox Code Playgroud)\n\n杀掉这个进程sudo kill -9 22177
再次运行容器
| 归档时间: |
|
| 查看次数: |
6062 次 |
| 最近记录: |