Trotz vielen Versuchen klappt bei mir der Import einer CSV-Textdatei in MySQL nicht.
Habe MySQL 4.0.12 / phpMyAdmin 2.3.2 / Apache 2.0.44 / PHP 4.3.1
also: Lampp 0.9.9a
Bekomme folgende Fehlermeldung:
LOAD DATA LOCAL INFILE '/tmp/phpMV34mv' INTO TABLE `WE_2003_04` FIELDS TERMINATED BY ';' ESCAPED BY '\\' LINES TERMINATED BY '\r\n'
MySQL meldet:
The used command is not allowed with this MySQL version
_______________________________________________________
Daraufhin habe ich in /opt/var/my.cfg
folgende Zeilen eingefügt:
[mysqld]
local-infile=1
[mysql]
local-infile=1
________________________________________________________
Ausserdem habe ich versucht mit /opt/lampp/lampp startmysql --local-infile=1
die Funktion LOAD DATA LOCAL zu aktivieren.
Klappt trotzdem nicht.
_________________________________________________________
Im Manual steht:
"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. "
____________________________________________________________
Also was mache ich falsch?
Vielen Dank für Eure Hilfe.
Alex