anchor.diff:                    ${concatMapStrings (database: ''
                       echo "CREATE DATABASE IF NOT EXISTS \`${database}\`;"
                     '') cfg.ensureDatabases}
  -                  ) | ${mysql}/bin/mysql -u root -N
  +                  ) | ${cfg.package}/bin/mysql -u root -N
                   ''}
   
                   ${concatMapStrings (user:
  
positive.code:           Restart = "on-abort";
            RestartSec = "5s";
            # The last two environment variables are used for starting Galera clusters
            ExecStart = "${mysql}/bin/mysqld --defaults-file=/etc/my.cnf ${mysqldOptions} $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION";
            ExecStartPost =
              let
                setupScript = pkgs.writeScript "mysql-setup" ''
  
negative.code:                         # Execute initial script
                          # using toString to avoid copying the file to nix store if given as path instead of string,
                          # as it might contain credentials
                          cat ${toString cfg.initialScript} | ${cfg.package}/bin/mysql -u root -N
                        ''}
  
                      rm ${cfg.dataDir}/mysql_init
  