anchor.diff:    # (earlier versions and MariaDB do this by default).
     installOptions =
       "${mysqldAndInstallOptions} ${lib.optionalString isMysqlAtLeast57 "--insecure"}";
  -
  -  myCnf = pkgs.writeText "my.cnf"
  -  ''
  -    [mysqld]
  -    port = ${toString cfg.port}
  -    datadir = ${cfg.dataDir}
  -    ${optionalString (cfg.bind != null) "bind-address = ${cfg.bind}" }
  -    ${optionalString (cfg.replication.role == "master" || cfg.replication.role == "slave") "log-bin=mysql-bin"}
  -    ${optionalString (cfg.replication.role == "master" || cfg.replication.role == "slave") "server-id = ${toString cfg.replication.serverId}"}
  -    ${optionalString (cfg.ensureUsers != [])
  -    ''
  -      plugin-load-add = auth_socket.so
  -    ''}
  -    ${cfg.extraOptions}
  -  '';
   
   in
   
  
positive.code:             if ! test -e ${cfg.dataDir}/mysql; then
                  mkdir -m 0700 -p ${cfg.dataDir}
                  chown -R ${cfg.user} ${cfg.dataDir}
                  ${mysql}/bin/mysql_install_db ${installOptions}
                  touch /tmp/mysql_init
              fi
  
  
negative.code:         serviceConfig = {
            Type = if hasNotify then "notify" else "simple";
            RuntimeDirectory = "mysqld";
            ExecStart = "${mysql}/bin/mysqld --defaults-file=/etc/my.cnf ${mysqldOptions}";
          };
  
          postStart = ''
  