Menu

SQL error bei Installation

Help 2.02
jhammer
2004-12-23
2013-04-08
  • jhammer

    jhammer - 2004-12-23

    Hallo Forum,

    folgender SQL error tritt beim Anlegen der Tabellen auf:

    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'div varchar(32) default NULL, PRIMARY KEY (ID), KEY ID (ID)
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'div tinyint(1) NOT NULL default '0', PRIMARY KEY (ID), KEY ID (ID)  The used table type doesn't support FULLTEXT indexes
    Table 'phpayv2.currency' doesn't exist
    Table 'phpayv2.currency' doesn't exist
    Done :-)

    Mein Server:
      Win2k
      Apache/1.3.33
      PHP 4.3.10
      MySQL 4.1.7

    Hat jemand eine Idee wo das Problem bzw. der Fehler liegen knnte?

    Danke, Hans

     
    • Andreas Kansok

      Andreas Kansok - 2004-12-23

      Geht jetzt gar nichts oder fehlt wirklich nur die Tabelle currency? Die lt sich auch schnell von Hand anlegen.
      Im phPay-Archiv ist auch eine Datei *.sql Versuch mal die mit phpMyAdmin einzuspielen.

      Die Ideen liefern eigentlich die Fehlermeldungen:
      "The used table type doesn't support FULLTEXT indexes"
      und -vermutlich ein Folgefehler -
      "Table 'phpayv2.currency' doesn't exist"

      Ideen zur Problemlsung und Tabellentypen sind dann gewi im Handbuch von MySQL zu finden.

      Gru,
      Andreas.

       
    • jhammer

      jhammer - 2004-12-27

      Hallo Andreas,

      Es werden alle Tabellen angelegt auer currency, itemgrinfo und characteristicinfo.

      Beim manuellen Anlegen bzw. beim Importieren der *.sql Datei lassen sich die Fehlermeldungen den Tabellen zuordnen:

      currency:
      You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'div varchar(32) default NULL, PRIMARY KEY (ID), KEY ID (ID)

      itemgrinfo:
      You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'div tinyint(1) NOT NULL default '0', PRIMARY KEY (ID), KEY ID (ID)

      characteristicinfo:
      The used table type doesn't support FULLTEXT indexes

      Als SQL-Neuling wre ich dankbar fr einen Tipp, wie das Problem zu lsen ist.

      Danke,
      Hans

       
      • Andreas Kansok

        Andreas Kansok - 2004-12-27

        Fr characteristicinfo verwende das folgende:
        CREATE TABLE `characteristicinfo` (
          `ID` int(8) unsigned NOT NULL auto_increment,
          `characteristicID` int(8) default NULL,
          `langID` int(8) NOT NULL default '1',
          `name` varchar(25) NOT NULL default 'n.n.',
          `text` text NULL,
          `orderby` int(8) NULL,
          PRIMARY KEY  (`ID`)
        ) TYPE=MyISAM

        Fr itemgrinfo:
        CREATE TABLE `itemgrinfo` (
          `ID` int(8) unsigned NOT NULL auto_increment,
          `itemgrID` int(8) NOT NULL default '1',
          `langID` int(8) NOT NULL default '1',
          `name` varchar(20) NOT NULL default 'n.n.',
          `div` tinyint(1) NULL',
          PRIMARY KEY  (`ID`)
        ) TYPE=MyISAM

        Den Fehler bei currency kann ich mir am wenigsten erklren.
        CREATE TABLE `currency` (
          `ID` int(4) NOT NULL auto_increment,
          `keysign` char(3) NOT NULL default 'n.n.',
          `name` varchar(50) NOT NULL default 'n.n.',
          `rate` decimal(10,6) unsigned NOT NULL default '1.000000',
          `div` varchar(32) NULL,
          PRIMARY KEY  (`ID`)
        ) TYPE=MyISAM

        Hast Du schon einen anderen MySQL-Server versucht? Ich vermute, da die Version4.1 irgendwa anders macht als z.B. mein 4.0.21

        Gru,
        Andreas.

         
    • jhammer

      jhammer - 2004-12-27

      Das hat funktioniert, danke!!!

      Soweit ich das als SQL-Neuling feststellen kann, lag das Problem mglicherweise am unterschiedlichen Tabellentyp (InnoDB anstelle MyISAM).

      Danke und Gru,
      Hans

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.