GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 20-May-2004, 18:08
bufhal bufhal is offline
New Member
 
Join Date: May 2004
Posts: 6
bufhal is on a distinguished road

Help with uploading CSV to PHPMYADMIN


Running MySQL 4.0.14-nt and trying to upload to phpmyadmin 2.5.6
I exported a CSV from Excel and when uploading I get this error(for data local):
Error
SQL-query :
LOAD DATA LOCAL INFILE 'C:\\Backup\\dot\\uploadtemp\\php673.tmp' INTO TABLE `agencies` FIELDS TERMINATED BY ','
MySQL said:
#1148 - The used command is not allowed with this MySQL version

If I try the other upload option(data), I get a "permission" type error.
Error
SQL-query :
LOAD DATA INFILE 'C:\\Backup\\dot\\uploadtemp\\php85C.tmp' INTO TABLE `agencies` FIELDS TERMINATED BY '' LINES TERMINATED BY ','
MySQL said:
#1045 - Access denied for user: 'wnyic@%' (Using password: YES)

I am new to this and need rather simplfied instruction.
Can you point me in the right direction?
I appreciate any help.. ;-)
bufhal
  #2  
Old 22-May-2004, 11:57
Div's Avatar
Div Div is offline
Moderator
 
Join Date: May 2002
Posts: 996
Div has a spectacular aura aboutDiv has a spectacular aura about
I have never been able to upload using DATA but DATA LOCAL has always worked for me. Do you have command line access to the remote computer? You could run the query from the mysql prompt and that should work. It would be something like:

Quote:
LOAD DATA INFILE 'C:\\Backup\\myfile.csv' INTO TABLE `agencies` FIELDS TERMINATED BY ',' LINES TERMINATED BY '\r\n';

Note the changes in FIELDS TERMINATED BY and LINES TERMINATED BY
__________________
Web Hosting Tips | Career Advice
  #3  
Old 23-May-2004, 12:26
bufhal bufhal is offline
New Member
 
Join Date: May 2004
Posts: 6
bufhal is on a distinguished road

thanks Div


At this time, I am not at the skill level to "shell in" the data via command line-is it something easy to learn? Are there any basic tutorials? PHPMYADMIN just seems to be more trouble than it is worth for me.. I need an "editor" to upload formated text or CSV files. Any ideas for a newbie?
thanks again
:-)
  #4  
Old 25-May-2004, 18:46
Div's Avatar
Div Div is offline
Moderator
 
Join Date: May 2002
Posts: 996
Div has a spectacular aura aboutDiv has a spectacular aura about
You can use MySQL frontends like MySQLFront (http://www.mysqlfront.de/), but I don't know if they work in every environment. That is, I don't know if you'll be able to use them with a MySQL server hosted by your webhosting provider.
__________________
Web Hosting Tips | Career Advice
  #5  
Old 25-May-2004, 18:57
bufhal bufhal is offline
New Member
 
Join Date: May 2004
Posts: 6
bufhal is on a distinguished road
Thank you for your help. I will look into other tools. This is a great forum, and you a great moderator...
Bufhal :-)
  #6  
Old 21-Jun-2004, 19:48
bufhal bufhal is offline
New Member
 
Join Date: May 2004
Posts: 6
bufhal is on a distinguished road

text file to mysql via phpmyadmin


Hello;
I have tried a few things to simply upload a text file to mysql via phpmyadmin. When I do, all my dropdown menu querys bring back "no results found". However, when I insert manulally one row at a time in phpmyadmin, the querys work.
Can anyone tell me what I am doing wrong?
Here is a text file record with the first column empty for auto-increment:
, Akron , Blue Cross , 11/18/2004

, Tues , 2-4 pm , Akron Newstead Senior Citizen

, pharmacy , 5691 Cummings Rd , 14001

, 542-7777 , Bill Roach ;

Thank you for any help and feedback!
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
phpMyAdmin error austinstace MySQL / PHP Forum 8 24-Aug-2007 21:42
help bird123 MySQL / PHP Forum 4 27-Mar-2005 06:20
File editing and uploading? PenguinJr MySQL / PHP Forum 4 31-Mar-2004 09:46
uploading files into server prinzekay MySQL / PHP Forum 5 16-Mar-2004 01:00
PhpMyAdmin / MySQL help birdbird MySQL / PHP Forum 13 22-Apr-2003 06:15

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 22:23.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.