1. Dashboard
  2. Forum
    1. Unerledigte Themen
  3. Downloads
  4. Galerie
    1. Alben
  5. Toolbox
    1. Passwort Generator
    2. Portchecker
  6. Mitglieder
    1. Mitgliedersuche
    2. Benutzer online
    3. Trophäen
    4. Team
Mo: 09 Juni 2025
  • Anmelden oder registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Forum
  • Dateien
  • Seiten
  • Bilder
  • Erweiterte Suche

Schön, dass du den Weg zu NodeZone.net gefunden hast! Aktuell bist du nicht angemeldet und kannst deshalb nur eingeschränkt auf unsere Community zugreifen. Um alle Funktionen freizuschalten, spannende Inhalte zu entdecken und dich aktiv einzubringen, registriere dich jetzt kostenlos oder melde dich mit deinem Account an.

Anmelden oder registrieren
    1. Nodezone.net Community
    2. Forum
    3. Gameserver & Hosting
    4. ArmA Series - ArmA 3 / Reforger
    5. Hilfeforum

    TIMESTAMP | SQL | 5.0

    • LazarusProtocol
    • 15. April 2017 um 20:47
    • Geschlossen
    • Erledigt
    • LazarusProtocol
      Frischling
      Reaktionen
      1
      Trophäen
      9
      Beiträge
      19
      Bilder
      1
      • 15. April 2017 um 20:47
      • #1

      Servus,

      wir haben ein Problem mit unserer Datenbank bezüglich A3.

      Wir kriegen stetig diesen Error:

      "correct table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE claus"

      Das ist seit dem mysql Update soweit wir wissen allerdings haben wir null Ahnung wie man das hier ändert.

      Rauslöschen bringt nichts auf lange Zeit

      Code
      SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
      SET time_zone = "+00:00";
      --
      -- Compatible with newer MySQL versions. (After MySQL-5.5)
      -- This SQL uses utf8mb4 and has CURRENT_TIMESTAMP function.
      --
      
      
      /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
      /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
      /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
      /*!40101 SET NAMES utf8mb4 */;
      
      --
      -- Database: `lazarusprotocol`
      -- Default Schema
      --
      CREATE DATABASE IF NOT EXISTS `lazarusprotocol` DEFAULT CHARACTER SET utf8mb4;
      USE `lazarusprotocol`;
      
      --
      -- Drop procedures to ensure no conflicts
      --
      DROP PROCEDURE IF EXISTS `resetLifeVehicles`;
      DROP PROCEDURE IF EXISTS `deleteDeadVehicles`;
      DROP PROCEDURE IF EXISTS `deleteOldHouses`;
      DROP PROCEDURE IF EXISTS `deleteOldGangs`;
      DROP PROCEDURE IF EXISTS `deleteOldContainers`;
      DROP PROCEDURE IF EXISTS `deleteOldWanted`;
      
      DELIMITER $$
      --
      -- Procedures
      -- Edit root to match a user in MySQL
      -- For external databases: Edit localhost to match rootserver IP
      --
      
      CREATE DEFINER=`root`@`localhost` PROCEDURE `resetLifeVehicles`()
      BEGIN
        UPDATE `vehicles` SET `active`= 0;
      END$$
      
      CREATE DEFINER=`root`@`localhost` PROCEDURE `deleteDeadVehicles`()
      BEGIN
        DELETE FROM `vehicles` WHERE `alive` = 0;
      END$$
      
      CREATE DEFINER=`root`@`localhost` PROCEDURE `deleteOldHouses`()
      BEGIN
        DELETE FROM `houses` WHERE `owned` = 0;
      END$$
      
      CREATE DEFINER=`root`@`localhost` PROCEDURE `deleteOldGangs`()
      BEGIN
        DELETE FROM `gangs` WHERE `active` = 0;
      END$$
      
      CREATE DEFINER=`root`@`localhost` PROCEDURE `deleteOldContainers`()
      BEGIN
        DELETE FROM `containers` WHERE `owned` = 0;
      END$$
      
      CREATE DEFINER=`root`@`localhost` PROCEDURE `deleteOldWanted`()
      BEGIN
        DELETE FROM `wanted` WHERE `active` = 0;
      END$$
      
      DELIMITER ;
      
      -- --------------------------------------------------------
      
      --
      -- Table structure for table `players`
      --
      
      CREATE TABLE IF NOT EXISTS `players` (
        `uid` int(6) NOT NULL AUTO_INCREMENT,
        `name` varchar(32) NOT NULL,
        `aliases` text NOT NULL,
        `pid` varchar(17) NOT NULL,
        `cash` int(100) NOT NULL DEFAULT '0',
        `bankacc` int(100) NOT NULL DEFAULT '0',
        `coplevel` enum('0','1','2','3','4','5','6','7') NOT NULL DEFAULT '0',
        `mediclevel` enum('0','1','2','3','4','5') NOT NULL DEFAULT '0',
        `civ_licenses` text NOT NULL,
        `cop_licenses` text NOT NULL,
        `med_licenses` text NOT NULL,
        `civ_gear` text NOT NULL,
        `cop_gear` text NOT NULL,
        `med_gear` text NOT NULL,
        `civ_stats` varchar(32) NOT NULL DEFAULT '"[100,100,0]"',
        `cop_stats` varchar(32) NOT NULL DEFAULT '"[100,100,0]"',
        `med_stats` varchar(32) NOT NULL DEFAULT '"[100,100,0]"',
        `arrested` tinyint(1) NOT NULL DEFAULT '0',
        `adminlevel` enum('0','1','2','3','4','5') NOT NULL DEFAULT '0',
        `donorlevel` enum('0','1','2','3','4','5') NOT NULL DEFAULT '0',
        `blacklist` tinyint(1) NOT NULL DEFAULT '0',
        `civ_alive` tinyint(1) NOT NULL DEFAULT '0',
        `civ_position` varchar(64) NOT NULL DEFAULT '"[]"',
        `playtime` varchar(32) NOT NULL DEFAULT '"[0,0,0]"',
        `insert_time` timestamp DEFAULT CURRENT_TIMESTAMP,
        `last_seen` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
        PRIMARY KEY (`uid`),
        UNIQUE KEY `pid` (`pid`),
        KEY `name` (`name`),
        KEY `blacklist` (`blacklist`)
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=12 ;
      
      -- --------------------------------------------------------
      
      --
      -- Table structure for table `vehicles`
      --
      
      CREATE TABLE IF NOT EXISTS `vehicles` (
        `id` int(6) NOT NULL AUTO_INCREMENT,
        `side` varchar(16) NOT NULL,
        `classname` varchar(64) NOT NULL,
        `type` varchar(16) NOT NULL,
        `pid` varchar(17) NOT NULL,
        `alive` tinyint(1) NOT NULL DEFAULT '1',
        `blacklist` tinyint(1) NOT NULL DEFAULT '0',
        `active` tinyint(1) NOT NULL DEFAULT '0',
        `plate` int(20) NOT NULL,
        `color` int(20) NOT NULL,
        `inventory` text NOT NULL,
        `gear` text NOT NULL,
        `fuel` double NOT NULL DEFAULT '1',
        `damage` varchar(256) NOT NULL,
        `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
        PRIMARY KEY (`id`),
        KEY `side` (`side`),
        KEY `pid` (`pid`),
        KEY `type` (`type`)
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=2 ;
      
      -- --------------------------------------------------------
      
      --
      -- Table structure for table `houses`
      -- Needed for extDB latest update on git
      --
      
      CREATE TABLE IF NOT EXISTS `houses` (
        `id` int(6) NOT NULL AUTO_INCREMENT,
        `pid` varchar(17) NOT NULL,
        `pos` varchar(64) DEFAULT NULL,
        `owned` tinyint(1) DEFAULT '0',
        `garage` tinyint(1) NOT NULL DEFAULT '0',
        `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
        PRIMARY KEY (`id`,`pid`)
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=4 ;
      
      -- --------------------------------------------------------
      
      --
      -- Table structure for table `gangs`
      -- Needed for extDB latest update on git
      --
      
      CREATE TABLE IF NOT EXISTS `gangs` (
        `id` int(6) NOT NULL AUTO_INCREMENT,
        `owner` varchar(32) DEFAULT NULL,
        `name` varchar(32) DEFAULT NULL,
        `members` text,
        `maxmembers` int(3) DEFAULT '8',
        `bank` int(100) DEFAULT '0',
        `active` tinyint(1) DEFAULT '1',
        `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
        PRIMARY KEY (`id`),
        UNIQUE KEY `name_UNIQUE` (`name`)
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
      
      -- --------------------------------------------------------
      
      --
      -- Table structure for table `containers`
      -- Needed for extDB latest update on git
      --
      
      CREATE TABLE IF NOT EXISTS `containers` (
        `id` int(6) NOT NULL AUTO_INCREMENT,
        `pid` varchar(17) NOT NULL,
        `classname` varchar(32) NOT NULL,
        `pos` varchar(64) DEFAULT NULL,
        `inventory` text NOT NULL,
        `gear` text NOT NULL,
        `dir` varchar(128) DEFAULT NULL,
        `active` tinyint(1) NOT NULL DEFAULT '0',
        `owned` tinyint(1) DEFAULT '0',
        `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
        PRIMARY KEY (`id`,`pid`)
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=4;
      
      -- --------------------------------------------------------
      
      --
      -- Table structure for table `wanted`
      -- Needed for extDB latest update on git
      --
      
      CREATE TABLE IF NOT EXISTS `wanted` (
        `wantedID` varchar(64) NOT NULL,
        `wantedName` varchar(32) NOT NULL,
        `wantedCrimes` text NOT NULL,
        `wantedBounty` int(100) NOT NULL,
        `active` tinyint(1) NOT NULL DEFAULT '0',
        `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
        PRIMARY KEY (`wantedID`)
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
      
      -- --------------------------------------------------------
      
      /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
      /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
      /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
      Alles anzeigen


      Danke im voraus!

      MFG

      ~LazarusProtocol

    • Rom
      Kenner
      Reaktionen
      156
      Beiträge
      533
      • 15. April 2017 um 21:31
      • #2

      Veraltete Version des MySQL-Servers. Am besten updaten. ^^

      Wenn ich etwas missverstanden habe, hoppala

    • cat24max
      Fortgeschrittener
      Reaktionen
      321
      Trophäen
      9
      Beiträge
      346
      • 15. April 2017 um 22:01
      • #3
      Zitat von Rom

      Veraltete Version des MySQL-Servers. Am besten updaten. ^^

      ^^this

      Gleiches Problem hatte ich früher auch auf einem Server daheim, lag aber wirklich daran. Früher ging anscheinend nur ein Timestamp pro Tabelle.

    • LazarusProtocol
      Frischling
      Reaktionen
      1
      Trophäen
      9
      Beiträge
      19
      Bilder
      1
      • 15. April 2017 um 22:08
      • #4

      apt-get update && apt-get upgrade

      habe das probiert. Sollte es damit gehen?

    • cat24max
      Fortgeschrittener
      Reaktionen
      321
      Trophäen
      9
      Beiträge
      346
      • 15. April 2017 um 22:32
      • #5

      Das kommt glaube ich darauf an, welches MySQL Server Paket du installiert hast.

      Muss also nicht unbedingt so sein...

    Registrieren oder Einloggen

    Du bist noch kein Mitglied von NodeZone.net? Registriere dich kostenlos und werde Teil einer großartigen Community!

    Registrieren

    Ähnliche Themen

    • Arma Update 1,74 Probleme

      • Phixioneu
      • 10. August 2017 um 14:46
      • Hilfeforum
    • Server absturz sobald bestimmte Spieler joinen

      • Pasi
      • 3. August 2017 um 18:00
      • Hilfeforum
    • Arma 3 altis life Db3 fehler

      • OssigamerTV
      • 1. Juli 2017 um 12:19
      • Hilfeforum
    • DB Problem

      • Jan Peters
      • 10. Juni 2017 um 21:30
      • Hilfeforum
    • extDB3 DB fehler

      • impulsgaming
      • 9. Mai 2017 um 16:33
      • Hilfeforum
    • Server einrichtung Setting up Client, please wait ...

      • der_Atze98
      • 22. Oktober 2016 um 16:22
      • Hilfeforum

    Wichtige Links & Informationen

    Server & Hosting-Ressourcen

      Server Administration & Hosting Basics

      Windows Server Support & Guides

      Linux Server Configuration & Help

      Setting up TeamSpeak 3 & VoIP Servers

      Domains & Web Hosting for Beginners & Professionals

      Cloud Hosting, Docker & Kubernetes Tutorials

    Gameserver & Modding-Ressourcen

      ArmA 3 Tutorials & Script Collection

      Renting & Operating Gameservers

      DayZ Server Management & Help

      FiveM (GTA V) Server & Script Development

      Rust Server Modding & Administration

      Setting up & Optimizing ARK Survival Servers

    NodeZone.net – Deine Community für Gameserver, Server-Hosting & Modding

      NodeZone.net ist dein Forum für Gameserver-Hosting, Rootserver, vServer, Webhosting und Modding. Seit 2015 bietet unsere Community eine zentrale Anlaufstelle für Server-Admins, Gamer und Technikbegeisterte, die sich über Server-Management, Hosting-Lösungen und Spielemodding austauschen möchten.


      Ob Anleitungen für eigene Gameserver, Hilfe bei Root- und vServer-Konfigurationen oder Tipps zu Modding & Scripting – bei uns findest du fundiertes Wissen und praxisnahe Tutorials. Mit einer stetig wachsenden Community findest du hier Antworten auf deine Fragen, Projektpartner und Gleichgesinnte für deine Gaming- und Serverprojekte. Schließe dich NodeZone.net an und werde Teil einer aktiven Community rund um Server-Hosting, Gameserver-Management und Modding-Ressourcen.

    Wer jetzt nicht teilt ist selber Schuld:
    1. Nutzungsbestimmungen
    2. Datenschutzerklärung
    3. Impressum
    4. Urheberrechts- oder Lizenzverstoß melden
  • Trimax Design coded & layout by Gino Zantarelli 2023-2025©
    Community-Software: WoltLab Suite™