gpt4 book ai didi

database - 如何更新 azerothcore-wotlk docker 容器

转载 作者:搜寻专家 更新时间:2023-10-30 20:33:30 28 4
gpt4 key购买 nike

我按照官方 installation guide for AzerothCore using Docker containers 在 docker 中运行 Azerothcore-WOTLK|我想知道如何更新艾泽拉斯核心构建以及如何在不丢失角色数据的情况下应用数据库更新。

要更新 docker 容器,我想我应该从 Github 中提取最新代码并使用 docker-compose downdocker-compose up 重建容器,但是如何做我确保我的角色数据在更新后仍然存在?

为了更新数据库,我假设我应该应用找到的所有 SQL 更新 here ,但是 db_assembler.sh 是否可用于 docker 容器?如果是,我该如何使用它?在任何更新之前备份数据库重要部分的过程是什么?

最佳答案

更新:自 2021 年 4 月 22 日起,AC 中的 Docker 系统进行了重新设计,并且在官方网站上提供了一个新的(简化的)安装和更新程序。

https://www.azerothcore.org/wiki/Install-with-Docker#how-to-keep-your-azerothcore-updated-with-the-latest-changes


遗留答案

  1. 使用 docker-compose stop CONTAINER_NAME 停止您的 worldserverauthserver 容器。

例如:

docker-compose 停止 azerothcore-wotlk_ac-worldserver_1

要查看容器的名称,请使用 docker ps

作为 FAQ提到,不要使用 docker-compose down销毁容器,而不仅仅是停止它们。

  1. 将您的源更新到最新版本(即 git pull)

  2. 使用 ./bin/acore-docker-build 重建源代码(现在替换为 ./acore.sh docker build)

  3. Update your DB像往常一样。

  4. 使用 docker-compose start 再次启动您的容器

更具体地说,关于与数据库相关的问题:

but is the db_assembler.sh usable for the docker container and if it is, how do I use it? What is the procedure for backing up important parts of the database before any update?

与传统设置没有区别。当您使用 Docker 时,您的数据库在一个包含 MySQL 服务器的 docker 容器中运行。因此,您可以访问、更新、备份等...您的数据库,就像您直接在主机上安装 MySQL-server 一样。

如官方指南所述,要访问它:

Use root as user and 127.0.0.1 as default host. The default password of the root DB user will be "password".

关于database - 如何更新 azerothcore-wotlk docker 容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55050800/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com