anchor.diff:            ''
               # Wait until the MySQL server is available for use
               count=0
  -            while [ ! -e /tmp/mysql.sock ]
  +            while [ ! -e /run/mysqld/mysqld.sock ]
               do
                   if [ $count -eq 30 ]
                   then
  
positive.code:     port = ${toString cfg.port}
      ${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.replication.role == "slave" && !is55)
      ''
        master-host = ${cfg.replication.masterHost}
        master-user = ${cfg.replication.masterUser}
  
negative.code:                     fi
                    '') cfg.initialDatabases}
  
                  ${optionalString (cfg.replication.role == "slave" && atLeast55)
                    ''
                      # Set up the replication master
  
  