Announcement

Collapse
No announcement yet.

synthax fehler

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • synthax fehler

    Hallo ich habe folgendes Problem,
    meine sql version ist 4 und ich denke dieses addon hat version 5
    wie muß ich diese synthax ändern damit ich die einträge in die datenbank bekomme


    raphi_paypal
    raphi_paypal_config

    werden erstellt ...

    ERROR IN: CREATE TABLE `raphi_paypal` ( `id` int(14) NOT NULL auto_increment, `name` varchar(255) collate latin1_german1_ci NOT NULL default '', `typ` varchar(255) collate latin1_german1_ci NOT NULL default '', `betrag` varchar(255) collate latin1_german1_ci NOT NULL default '', `email` varchar(255) collate latin1_german1_ci NOT NULL default '', `info` text collate latin1_german1_ci NOT NULL, `url` varchar(255) collate latin1_german1_ci NOT NULL default '', `banner` varchar(255) collate latin1_german1_ci NOT NULL default '', PRIMARY KEY (`id`) )TYPE=MyISAM;

    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 'collate latin1_german1_ci not null default '', `typ` varcha
    --------------------------------------------------------------------------------
    ERROR IN: CREATE TABLE `raphi_paypal_config` ( `id` int(1) NOT NULL default '1', `seiten` int(14) NOT NULL default '10', `paypal_im` text collate latin1_german1_ci NOT NULL, `paypal_id` int(14) NOT NULL default '0')
    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 'collate latin1_german1_ci not null, `paypal_id` int(14) not
    --------------------------------------------------------------------------------
    ERROR IN: INSERT INTO `raphi_paypal_config` (`id`, `seiten`, `paypal_im`, `paypal_id`) VALUES (1, 10, '', 1733909)

    table 'db226854634.raphi_paypal_config' doesn't exist


    Wer kann mir helfen die install anzupassen für sqlversion4

    glg
    Devar
    Attached Files

  • #2
    Folgende Statements in der SQL Datei löschen:

    DEFAULT CHARSET = latin1 COLLATE = latin1_german1_ci

    z.B. mit Suchen & Ersetzen im Editor.

    Der Fehler trat auch bei mir auf, als ich einen MySQL 5.x Dump in eine MySQL 4.x Datenbank importieren wollte...

    Siehe auch:

    http://www.typo3.net/forum/list/list...ge=1#pid189576

    Gruß
    HardCode

    Comment


    • #3
      Hab auch nen Syntax Fehler, inzwar in nahe zu jeder Abfrage die ich schreibe -.-'
      Weiss nicht wieso nach nen bischen basteln klappt es auf einmal...
      Verstehe ich nicht ..

      Also ich habe folgenden Code:
      $abfrage = "INSERT INTO ".$welt."_regi
      (Loginname, Passwort, Mail, Regdatum, Sperre, Premium, Werbefrei, LetzteIP, IPFail, Mod, Aktiviert, Akt_link)
      VALUES ('$txt_loginname', '$txt_kennwort1', '$txt_mail', NOW(), 0, 0, 0, '".$_SERVER['REMOTE_ADDR']."', 0, 0, 0, '$akt_random');";

      $ergebnis = mysql_query($abfrage) OR die("Eintrag in Die Datenbank Fehlgeschlagen ! Bitte informieren Sie einen Admin !". mysql_error());

      Ich hoffe man kann es lesen...

      Ich bekomme immer folgende Meldung raus (Die Abfrage eines kompletten Datensatzes hat jetzt erst funktioniert, nachdem ich nicht die benötigten Spaltennamen hingeschrieben habe, sondern ein * ...:
      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 'Mod, Aktiviert, Akt_link)
      VALUES ('Nameee', '1e80568ae830e080d5ad' at line 2...

      Die Felder gibt es alle !! Weiss nicht warum das nicht funktioniert... Selbe fehlermeldung wenn ich das ganze mit SELECT (Feldnamen.....) FROM ..... WHERE ... = ... Mache...
      Aber wenn ich anstatt Feldnamen ein * mache funktiniert es reibungslos !?

      Hoffe mir kann jemand helfen ^^...
      Danke im vorraus...
      Frohe Weihnachten...

      Comment


      • #4
        Warum postest du das nicht in einem eigenen Thread??
        Christian

        Comment


        • #5
          Danke für die hilfreiche Antwort...
          Steht jetzt in nem eigenem Thema...

          Comment

          Working...
          X