开发者社区 > 云原生 > 容器服务 > 正文

容器服务ACK 我把存储都调整为自建配置的NFS了,但是还是会出现BackOff,下面是容器日志?

容器服务ACK 我把存储都调整为自建配置的NFS了,但是还是会出现BackOff,下面是容器日志:
2023-08-02 13:22:13+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.
2023-08-02 13:22:14+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2023-08-02 13:22:14+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.
2023-08-02 13:22:14+00:00 [Note] [Entrypoint]: Initializing database files
2023-08-02T13:22:14.479617Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
2023-08-02T13:22:14.479687Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.34) initializing of server in progress as process 80
2023-08-02T13:22:14.481268Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
2023-08-02T13:22:14.481275Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.
2023-08-02T13:22:14.481316Z 0 [ERROR] [MY-010119] [Server] Aborting
2023-08-02T13:22:14.481406Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.34) MySQL Community Server - GPL.682b5221d700e38e33f80dadd8271e77.png

展开
收起
真的很搞笑 2023-08-08 18:58:15 100 0
1 条回答
写回答
取消 提交回答
  • 清理下/var/lib/mysql/中的所有文件试试,挂载点上清下,此回答整理自钉群“容器服务ACK 用户交流-1群”

    2023-08-09 07:55:33
    赞同 展开评论 打赏

国内唯一 Forrester 公共云容器平台领导者象限。

相关产品

  • 容器服务Kubernetes版
  • 相关电子书

    更多
    ACK 云原生弹性方案—云原生时代的加速器 立即下载
    ACK集群类型选择最佳实践 立即下载
    《边缘容器服务ACK@Edge》 立即下载

    相关镜像