版本:kubesphere3.0
搭建环境:aws quickstart安装方式
描述:
在工作空间下创建mysql5.7 有状态服务失败。但是同一空间创建mysql5.6是正常的。也尝试删除了整个workspace
并且删除了pvc和对应的pv,再次在一个新的workspace 里面创建mysql5.7有状态服务,仍然是这个问题。
报错如下:
2021-01-04 11:54:30+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.32-1debian10 started.
2021-01-04 11:54:30+00:00 [Note] [Entrypoint]: Switching to dedicated user ‘mysql’
2021-01-04 11:54:30+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.32-1debian10 started.
2021-01-04 11:54:30+00:00 [Note] [Entrypoint]: Initializing database files
2021-01-04T11:54:30.916596Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use –explicit_defaults_for_timestamp server option (see documentation for more details).
2021-01-04T11:54:30.918345Z 0 [ERROR] –initialize specified but the data directory has files in it. Aborting.
2021-01-04T11:54:30.918380Z 0 [ERROR] Aborting