[DiscordArchive] Hi.
[DiscordArchive] Hi.
Archived author: NitramDday • Posted: 2025-01-04T10:23:26.402000+00:00
Original source
Hi.
how did you manage to change the passwords?
would you mind help me with some pointers?
Archived author: Erwin • Posted: 2025-01-04T10:30:17.311000+00:00
Original source
I used HeidiDB to set a new password for 'root' in the running database server. After that, just set the environment variable before your docker compose: MYSQL_ROOT_PASSWORD="my password" docker-compose up -d --build
Archived author: Erwin • Posted: 2025-01-04T10:32:25.834000+00:00
Original source
You can also set up a .env file instead, there a template with info in the source tree somewhere.
Archived author: NitramDday • Posted: 2025-01-04T10:37:30.038000+00:00
Original source
ah, ok. So first run the docker and set password.
where is the environment variable?
in the docker-compose.yml?
i got pointed to not edit the docker-compose file (use override) and that the env file is conf/dist/env.docker.
Did you change in the docker-compose?
https://github.com/azerothcore/azerothco...ompose.yml
is it this part?
environment:
- MYSQL_ROOT_PASSWORD=${DOCKER_DB_ROOT_PASSWORD:-password}
[Embed: azerothcore-wotlk/docker-compose.yml at master · azerothcore/azerot...]
Complete Open Source and Modular solution for MMO. Contribute to azerothcore/azerothcore-wotlk development by creating an account on GitHub.
https://github.com/azerothcore/azerothco...ompose.yml
Archived author: Erwin • Posted: 2025-01-04T10:38:46.406000+00:00
Original source
I didn't change anything, I set the environment variable.
Archived author: Erwin • Posted: 2025-01-04T10:39:19.314000+00:00
Original source
(as I typed out verbatim)
Archived author: Erwin • Posted: 2025-01-04T10:41:57.728000+00:00
Original source
If you have an existing database with the default password already running and don't want to delete your database, you need to update it there. If you start from scratch, just set the variable and run docker-compose.
Archived author: Erwin • Posted: 2025-01-04T10:43:28.189000+00:00
Original source
Thing is, that you need to do that every time when (re) building. That may get annoying, so that's when an env file may be handy.
Archived author: Erwin • Posted: 2025-01-04T10:43:55.072000+00:00
Original source
(but is not required)
Archived author: NitramDday • Posted: 2025-01-04T10:45:14.499000+00:00
Original source
ah!
did not know i could run it like that.
Thank you for helping. I will try and see if i can get it to work.