Skip to content

Instantly share code, notes, and snippets.

@greyson
Created February 24, 2017 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greyson/ccf69409524df8810990c115c65881f8 to your computer and use it in GitHub Desktop.
Save greyson/ccf69409524df8810990c115c65881f8 to your computer and use it in GitHub Desktop.
mysql_install_db: [ERROR] unknown variable 'pid-file=/run/mysqld/mysqld.pid'
configuration.nix:
services.mysql = {
enable = true;
package = pkgs.mysql57;
initialDatabases = [
{ name = "akron"; schema = ./akron.sql; }
];
/*
initialScript = ''
GRANT ALL ON akron.* TO ${dbusername}@localhost
IDENTIFIED BY '${dbpassword}';
'';
*/
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment