Details
- Reviewers
ashoat ginsu tomek rohan - Group Reviewers
Restricted Owners Package (Owns No Changed Paths) - Commits
- rCOMMad467672c5c6: [nix] Enable `performance_schema` by default on Nix
performance_schema is set as expected when using (newly-created) Nix-backed MariaDB database:
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
nix/mariadb-up-mac.nix | ||
---|---|---|
17 ↗ | (On Diff #31457) | Hmm, this doesn't feel great to me... you're overwriting the contents of the user's ~/.my.cnf file. This feels intense... in general applications shouldn't touch user-defined configuration. What if the user wants to customize this? What if the user already had a file like this for eg. a local MySQL instance, and we completely clear it? Is it possible to instead pass this as a param when we run MariaDB on line 27? If not, is appending an option or will that lead to an infinitely-growing file? If not, is there another file we can edit that isn't in the userdir? (Ideally it's specific to our Nix-sourced MariaDB, and doesn't affect any other installs.) |
Way better, thanks. Can we rename the file to make it clear it's MariaDB config? How about .localmariadb.cnf?
looks like it can be even simpler...
got thrown off by some old MySQL docs and an incorrect comment someone left saying that performance-schema needed to included in config file and couldn't be passed to command line
but found the following on GitHub: https://github.com/Percona-Lab/mysql_random_data_load/blob/master/docker-compose.yml
and then also verified that it worked for us