Skip to content

Fixes for my dumper#12

Open
marcepartment wants to merge 3 commits into
mainfrom
feature/mydumper
Open

Fixes for my dumper#12
marcepartment wants to merge 3 commits into
mainfrom
feature/mydumper

Conversation

@marcepartment

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Magento 2 mydumper/myloader wrapper commands to connect as the MySQL root user (to ensure sufficient privileges for consistent dumps and full-privilege restores), and bumps the project version accordingly.

Changes:

  • Bump version from 0.7.0.3 to 0.7.0.4.
  • Switch commands/magento2/mydumper.cmd to use root / ${MYSQL_ROOT_PASSWORD} and add explanatory comments.
  • Switch commands/magento2/myloader.cmd to use root / ${MYSQL_ROOT_PASSWORD} and add explanatory comments.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
version Version bump to reflect the changes.
commands/magento2/myloader.cmd Use root credentials for loads to ensure sufficient privileges.
commands/magento2/mydumper.cmd Use root credentials for consistent dumps; adds rationale comments.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +46 to 50
## connect as root: a consistent dump needs the RELOAD/BACKUP_ADMIN privilege
## (BACKUP STAGE START / FLUSH TABLES), which the limited app user lacks
MYDUMPER_ARGS=(--host=db --user=root --password="${MYSQL_ROOT_PASSWORD}")
[[ ${HAS_DATABASE} -eq 0 ]] && MYDUMPER_ARGS+=(--database="${MYSQL_DATABASE}")
[[ ${HAS_OUTPUT} -eq 0 ]] && MYDUMPER_ARGS+=(--outputdir="${MYDUMPER_OUTPUT_DIR}")
Comment on lines +48 to 52
## connect as root so the load has full privileges on the target schema
MYLOADER_ARGS=(--host=db --user=root --password="${MYSQL_ROOT_PASSWORD}")
[[ ${HAS_DATABASE} -eq 0 ]] && MYLOADER_ARGS+=(--database="${MYSQL_DATABASE}")
[[ ${HAS_DIRECTORY} -eq 0 ]] && MYLOADER_ARGS+=(--directory="${MYLOADER_INPUT_DIR}")
[[ ${HAS_OVERWRITE} -eq 0 ]] && MYLOADER_ARGS+=(--overwrite-tables)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants