前置条件:
问题及其解决方案:
- 1
date
数据类型 不能置为0000-00-00 00:00:00
[root@ecs-s6-medium-2-linux-20191113090041 conf]
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld]
init_connect='SET collation_connection = utf8_unicode_ci'
init_connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake
sql_mode= STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
datadir = /var/lib/mysql
secure-file-priv= NULL
symbolic-links=0
!includedir /etc/mysql/conf.d/
[root@ecs-s6-medium-2-linux-20191113090041 conf]
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7141cbf9d051 mysql:8.0 "docker-entrypoint..." 27 minutes ago Up 21 minutes 33060/tcp, 0.0.0.0:3307->3306/tcp mysql8.0
251e5b8eaced mysql:5.7 "docker-entrypoint..." 4 hours ago Up 21 minutes 33060/tcp, 0.0.0.0:3309->3306/tcp mysql5.7
[root@ecs-s6-medium-2-linux-20191113090041 conf]
Redirecting to /bin/systemctl restart docker.service
[root@ecs-s6-medium-2-linux-20191113090041 conf]
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7141cbf9d051 mysql:8.0 "docker-entrypoint..." 27 minutes ago Up 5 seconds 33060/tcp, 0.0.0.0:3307->3306/tcp mysql8.0
251e5b8eaced mysql:5.7 "docker-entrypoint..." 4 hours ago Up 4 seconds 33060/tcp, 0.0.0.0:3309->3306/tcp mysql5.7
[root@ecs-s6-medium-2-linux-20191113090041 conf]