??SQL-fehler??

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • ??SQL-fehler??

    Hallo zusammen,
    ich beschäftige mich erst seit kurzem mit mysql und php!
    Jetzt hab ich schon bei der Einrichtung einer Datenbank probleme!(ANFÄNGER)
    Ich benutze MySQl4.0.12 und myphpadmin 2.4.0.
    Jetzt habe ich mir eine lehre Datenbank mit "myphpadmin" eingerichtet bzw. die Tabelle und Spalten.
    Wenn ich jetzt eine Datenbanktabelle importieren möchte bekomme ich folgende fehlermeldung....
    -----------------------------------------------------------
    SQL-Befehl :

    LOAD DATA LOCAL INFILE 'C:\\PHP\\uploadtemp\\php25.tmp' REPLACE INTO TABLE `datenwh`
    FIELDS TERMINATED BY ';'
    ENCLOSED BY '"'
    ESCAPED BY '\\'
    LINES TERMINATED BY '\r\n'

    MySQL meldet:


    The used command is not allowed with this MySQL version
    ----------------------------------------------------------
    Was mach ich Falsch!?!?!?
    Vielen Dank, Sandra

  • #2
    Do you speak English?
    The used command is not allowed with this MySQL version
    Das sagt doch schon alles.

    Das geht nicht. Da kannst du nichts richtig oder Falsch machen. Hast du den Query so eingegeben?

    Kommentar


    • #3
      Mir sagt das gar nichts!
      Welches "command is not allowed"?
      Ich hab nur die "index.php" aufgerufen und danach die Option "Textdatei in Tabelle einfügen" ausgewählt!

      Gibt es nicht sowas wie ein Tutorial oder kann mir jemand erklären was ich alles zu beachten habe um eine Datenbank anzulegen bzw. sie dann auch Bearbeiten zu können?(mit allen programmen und einstellungen)

      Vielen Dank, Sandra

      Kommentar


      • #4
        Eventuell ist das keyword local nicht erlaubt. Es kann Sein dass Dein MySQL mit --local-infile=0 gestartet ist.
        Lass das Local mal weg.


        If you don't configure MySQL with --enable-local-infile, then LOAD DATA LOCAL will be disabled by all clients, unless one calls mysql_options(... MYSQL_OPT_LOCAL_INFILE, 0) in the client. See section 8.4.3.159 mysql_options().

        For the mysql command-line client, LOAD DATA LOCAL can be enabled by specifying the option --local-infile[=1], or disabled with --local-infile=0.

        By default, all MySQL clients and libraries are compiled with --enable-local-infile, to be compatible with MySQL 3.23.48 and before.

        One can disable all LOAD DATA LOCAL commands in the MySQL server by starting mysqld with --local-infile=0.

        In the case that LOAD DATA LOCAL INFILE is disabled in the server or the client, you will get the error message (1148):

        The used command is not allowed with this MySQL version

        Beantworte nie Threads mit mehr als 15 followups...
        Real programmers confuse Halloween and Christmas because OCT 31 = DEC 25

        Kommentar


        • #5
          schau mal in deiner my.ini nach und ergänze die einträge (falls noch nicht vorhanden)
          Code:
          [mysqld]
          local-infile=1
          [mysql]
          local-infile=1
          und mysql neu starten
          Zuletzt geändert von mrhappiness; 08.04.2003, 08:34.
          Ich denke, also bin ich. - Einige sind trotzdem...

          Kommentar


          • #6
            Das Funktioniert auch nicht! :-(
            Kann es vielleicht sein das "mysql" keinen "odbc" treiber findet?

            Kommentar


            • #7
              was funktioniert nich?
              Mellos vorschlag oder meiner?

              wozu brauchst du ODBC-Treiber?
              Ich denke, also bin ich. - Einige sind trotzdem...

              Kommentar


              • #8
                Keiner von beiden funktioniert!
                Keine ahnung wozu ich sie gebrauchen könnte!
                Wenn ich auf "showme" gehe dann zeigt "mysql" mir bei "ODBC" an, das er halt keinen findet! Deswegen frage ich, ob ich einen treiber benötige oder nicht.
                Das steht in der "my.ini" Datei.............
                -------------------------------------------------------------------
                #This File was made using the WinMySQLAdmin 1.4 Tool
                #07.04.2003 13:06:19

                #Uncomment or Add only the keys that you know how works.
                #Read the MySQL Manual for instructions

                basedir=C:/mysql
                #bind-address=10.1.100.99
                datadir=C:/mysql/data
                #language=C:/mysql/share/your language directory
                #slow query log#=
                #tmpdir#=
                #port=3306
                #set-variable=key_buffer=16M
                [WinMySQLadmin]
                Server=C:/mysql/bin/mysqld-nt.exe
                user=administrator
                password=adminwh
                QueryInterval=10
                --------------------------------------------------------------
                Hab sie jetzt wieder in ihren Originalzustand versetzt!

                Kommentar

                Lädt...
                X