Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Bug im SQL Script

    Scheduled Pinned Locked Moved Entwicklung
    1 Posts 1 Posters 1.6k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      Bender_01
      last edited by

      Hallo,
      kann es sein das Euch Entwicklern ein Fehler in der Erstellung der SQL Datei zur Installation von i-doit unterlaufen ist. Ich habe nämlich festgestellt das bei der Installation von i-doit die Tabelle cdromserver nicht angelegt wird und dadurch ein Fehler beim Starten von i-doit gemeldet wird.

      Ich habe daraufhin mir die SQL Datei angeschaut und per Hand über PHP-Myadmin den SQL Befehl zum Erstellen der Tabelle ausgeführt. Der SQL Server meldete das die ID doppelt vorhanden sei. Beim durchschauen fiel mir folgendes auf:

      –------------------------------------------------------

      Table structure for table cdromserver

      CREATE TABLE cdromserver (
      ID int(11) NOT NULL auto_increment,
      schrankID int(11) NOT NULL default '0',
      Name varchar(255) NOT NULL default '',
      Hersteller varchar(255) NOT NULL default '',
      Modell varchar(255) NOT NULL default '',
      Seriennummer varchar(255) NOT NULL default '',
      stromID int(11) NOT NULL default '0',
      Firmware-Version varchar(255) NOT NULL default '',
      Kapazität varchar(255) NOT NULL default '',
      Anzahl der Laufwerke varchar(255) NOT NULL default '',
      IP-Adresse varchar(255) NOT NULL default '',
      Subnetmaske varchar(255) NOT NULL default '',
      switchID int(11) NOT NULL default '0',
      Switch-Port varchar(255) NOT NULL default '',
      Dokumentation varchar(255) NOT NULL default '',
      => PRIMARY KEY (ID,ID)
      ) TYPE=MyISAM AUTO_INCREMENT=4 ;

      In der Zeile PRIMARY KEY steht die ID zweimal drin, ich habe eine herausgelöscht und es hat funktioniert.

      Hatte das zweite ID eine bestimmte Bedeutung oder warum stand das darin?

      Gruß
      Alexander

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post