79158135

Date: 2024-11-05 08:11:28
Score: 0.5
Natty:
Report link

Turn out it is the user permission issue. Files in /var/lib/mysql is owned by user 999, and id $(whami) shows the current user is mysql(1001).

To fix this issue I add -u option to the docker run to run bash as user 999:

docker compose run -u 999 mysql_backup bash
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: link89