mysql容器启动报错 , 5.7版本

来源:6-1 根据前面所学部署一个wordpress

SilentEasy

2018-06-13

[root@VM_60_17_centos ~]# docker logs mysql

2018-06-12T16:04:15.012564Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2018-06-12T16:04:15.013736Z 0 [Note] mysqld (mysqld 5.7.22) starting as process 1 ...

2018-06-12T16:04:15.016462Z 0 [Note] InnoDB: PUNCH HOLE support available

2018-06-12T16:04:15.016487Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2018-06-12T16:04:15.016490Z 0 [Note] InnoDB: Uses event mutexes

2018-06-12T16:04:15.016494Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier

2018-06-12T16:04:15.016498Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3

2018-06-12T16:04:15.016502Z 0 [Note] InnoDB: Using Linux native AIO

2018-06-12T16:04:15.016727Z 0 [Note] InnoDB: Number of pools: 1

2018-06-12T16:04:15.016824Z 0 [Note] InnoDB: Using CPU crc32 instructions

2018-06-12T16:04:15.018237Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M

2018-06-12T16:04:15.025509Z 0 [Note] InnoDB: Completed initialization of buffer pool

2018-06-12T16:04:15.027670Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().

2018-06-12T16:04:15.039173Z 0 [ERROR] [FATAL] InnoDB: Table flags are 0 in the data dictionary but the flags in file ./ibdata1 are 0x4800!

2018-06-12 16:04:15 0x7f6dde92e740  InnoDB: Assertion failure in thread 140109862332224 in file ut0ut.cc line 942

老师帮忙看下问题

写回答

2回答

麦兜搞IT

2018-06-13

好的,good job,请把问题改为已解决吧,谢谢

0
1
SilentEasy
非常感谢!
2018-06-13
共1条回复

SilentEasy

提问者

2018-06-13

问题解决了  我启动的时候换了新的存储的目录 之前运行了mysql8.0版本的容器

docker run -d --name mysql -v mysql-data:/var/lib/mysql5.7  -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=wordpress mysql:5.7

0
0

系统学习Docker 践行DevOps理念

无论你是开发、测试还是运维,Docker都是你的必备技能。

3297 学习 · 1895 问题

查看课程