|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Hi,
I am having trouble with this command. I am using win 98, connecting through telnet to my isp. I have tried a number of things: 1) tried to load data with phpmyadmin 2) tried manually loading through telnet: LOAD DATA INFILE '/home/afp/brandmodel.txt' INTO TABLE brandmodel FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY 'r'; (also tried 'n') I get the error on both: ERROR 1045: Access denied for user: 'afp@localhost' (Using password: YES) BTW: I did set file permissions of file to 777. I also tried manually inserting one entry through phpMyAdmin and it worked. I believe my syntax is correct, so I think it is either the file and table, or my priviledges maybe? I have asked my ISP about priviledges, and he is going to look into it. So I will explain the table and the text file. Table: 14 fields, all var char(255), Null. text file: made with ms access comma seperated, enclosed by ". One thing I did notice when looking at the text file is that the entries that were empty on access do not have quotes, there are just commas. I've tried so many things.. can someone please help me to get this working? I may be missing something fundemental, or something I did wrong initially. Thanks for any and all help on this. Dave |
|
#2
|
|||
|
|||
|
I'm not sure what's wrong there, but I can tell you this: That error is a mysql permissions error. Has nothing to do with file permissions or the integrity or format of the file.
|
|
#3
|
|||
|
|||
|
ok, thats great, at least I'm not doing anything wrong URL
|
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > help with LOAD DATA command please |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|