Skip to content
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

Updated mysql Package to support the change of root password of the mysql-server #48913

Closed
wants to merge 1 commit into from

Conversation

TheZyppi
Copy link

Ensure Databases and User does not work if the root password has changed

Motivation for this change

Trying to use mysqlBackup with changed root password. ... not working

Things done
  • [ x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • [x ] NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • [ x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • [ x] Fits CONTRIBUTING.md.

Ensure Databases and User does not work if the root password has changed
@FRidh
Copy link
Member

FRidh commented Oct 24, 2018

Please improve the commit title to describe what Nixpkgs attribute is modified, and what the change is roughly about.

@TheZyppi TheZyppi changed the title Update mysql.nix Updated mysql Package to support the change of root password of the mysql-server Oct 25, 2018
@TheZyppi
Copy link
Author

Done

Copy link
Member

@samueldr samueldr left a comment

Choose a reason for hiding this comment

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

Hi! 👋

First of all, thanks for contributing, not always easy to get a first contribution into an established project!


Though, I'm sorry, this PR cannot be merged as-it-is in release-18.09.

  1. This is not a backport of a change from master
  2. The change is possibly not doing the right thing

More explanation follows.


Not a backport

Most changes to the behaviour of NixOS modules will mirror changes made in the master branch. And few of those changes are actually backported, mostly for forward and backward compatibility's sake, or to fix bugs.

In this particular case, the change would need to be made on master first, then reviewed and merged on master before going into release-18.09 (the current stable).

The change is possibly not doing the right thing

The configuration option used, rootPassword does not contain the root password:

rootPassword: Path to a file containing the root password, modified on the first startup. Not specifying a root password will leave the root password empty.

This means that the current change will pass a filename as the -p parameter to the mysql command.

@samueldr
Copy link
Member

(triage) closing this PR.

  1. It targets the previous stable release, which is not supported anymore.
  2. Changes should first happen on master, then be backported

If the change is still wanted, please re-open a new PR, targeting master. Thanks again for wanting to contribute, though!

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.

None yet

5 participants