Xibo sql error ERROR 2005 (HY000): Unknown MySQL server host etc after cms migration or restore previous backup

To be completed by the original poster:

CMS Version

cms 4.0.14

Installation Method

Docker

Operating System

ubunu 24

Issue

Please describe in detail the issue you are experiencing, including any errors shown in the Logs section of the CMS.
Hello,
I have some weird experience and finally find solution.
I want to share.
It would be beneficial in cases of migration to new cms or setting up etc.

/situation.

I installed new xibo cms on new system as recommendation of docker.
I check it is ok(normal connection).
and I want to restore backup CMS data.
So, I remove initial shared folder and copy backup shared folder.
code are belows.

docker compose down
rm -r shared
cp shared_bakcup shared
docker compose up -d

after this process, I cannot connect cms webpage with error msg “ERROR 2005 (HY000): Unknown MySQL server host …”

Solution

copy only CMS and db folder in shared folder
and
docker compose up -d

Finally It woked again and fully restored on new CMS.
I hope this tip help you!

One more thing,
when i copy shared folder, there is always error msg “mysql.sock”
just ignore it.
no problem