Skip to content

Modify the way credentials are obtained for mysqldump in script delete_imaging_upload.pl #1282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 9, 2025

Conversation

nicolasbrossard
Copy link
Collaborator

This PR modifies the behavior of script delete_imaging_upload.pl in the following way: it removes option -extra_mysqlcnf and adds an option -mysql-defaults-file that can be used to specify a file containing the password to use when mysqldump is invoked with a non-admin user (the one specified in the prod file). The big difference here is that the file specified with that new option will be the only one read to get this password. This avoids potential conflicts when there already is a ~/.my.cnf option file with a different password in it (e.g. to run a mysql client with an admin user). See https://dev.mysql.com/doc/refman/8.4/en/option-files.html.

@cmadjar cmadjar merged commit 15a4c4b into aces:main May 9, 2025
9 checks passed
@cmadjar cmadjar added this to the 27.0 milestone May 9, 2025
MaximeBICMTL pushed a commit to maximemulder/Loris-MRI that referenced this pull request Jun 16, 2025
…e_imaging_upload.pl (aces#1282)

* Modify the way credentials are obtained for mysqldump in script delete_imaging_upload.pl

* Remove debug print statement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants