FLORA Community WEB:
 Who we are   Organizations   Get Involved!   Helpdesk 
 Weblog   About FLORA   Server project   F.A.Q. 

Election 2006 (and beyond): Digital Copyright Canada

The FLORA Help Desk

Read: [next] [previous] message

how to upload text to a MySQL table at Flora?

From: "Peter Blanchard" <people_-at-_planetfriendly.net>
To: flora-admin-help_-at-_flora.org
Date: Thu, 10 Oct 2002 02:22:47 -0400

Hello,

I'm trying to upload some data to a MySQL table,
and am getting nowhere! I know I succeeded once 
before (half a year ago, after multiple attempts), 
and I can't remember what I did differently.

I'm trying to do the upload using phpMyAdmin's 
"Insert data from a textfile into table" form, 
with the following parameters (which I believe
are the same I used last time, according to my notes):

October 9, 2002, using phpMyAdmin:

Location of the textfile: C:\PETER\Temp\Upload.txt
Replace table data: (no, checkbox not checked)
Fields terminated by: |
Fields enclosed by: (nothing)
Fields escaped by: (nothing)
Lines terminated by: ~eor~
Column names: Publish, DateEntered, EntryMode, DateUpload, 
EID, EIDW, Source, SubmitName, SubmitEmail, SubmitPhone, 
SubmitComments, Title, TitleOrig, StartDay, StartMonth, 
StartDate, StartYear, EndDay, EndMonth, EndDate, EndYear, 
StartHour, StartMinute, StartAmPm, EndHour, EndMinute, 
EndAmPm, DateText, RSVP, RegDay, RegMonth, RegDate, 
RegYear, RegComments, RegDateFirm, Recur, RecurComments, 
Descrip, MoreDescrip, DigestDescrip, DescripOrig, ListingType, 
Topic, Topic2, Keywords, Address, City, CityText, Province, 
Country, NearestCity, Region, Org, Price, ContactName, 
ContactEmail, ContactPhone, ContactFax, ContactWeb, 
ContactWeb2, ContactMore, ListWhenPref

~~~~~~~~~~~~~~~~~~~~~~~~~~
(phpMyAdmin 2.2.6)
(MySQL 3.23.52 running on db.int.flora.ca)
~~~~~~~~~~~~~~~~~~~~~~~~~~
RESULTING ERROR PAGE:
~~~~~~~~~~~~~~~~~~~~~~~~~~
Database planetfriendly - table event running on db.int.flora.ca
Error

SQL-query :  
LOAD DATA LOCAL INFILE '/tmp/phpyla0aY' 
INTO TABLE `event` FIELDS TERMINATED BY '|' 
LINES TERMINATED BY '~eor~' 
(`Publish`, `DateEntered`, `EntryMode`, `DateUpload`, 
`EID`, `EIDW`, `Source`, `SubmitName`, `SubmitEmail`, 
`SubmitPhone`, `SubmitComments`, `Title`, `TitleOrig`, 
`StartDay`, `StartMonth`, `StartDate`, `StartYear`, 
`EndDay`, `EndMonth`, `EndDate`, `EndYear`, `StartHour`, 
`StartMinute`, `StartAmPm`, `EndHour`, `EndMinute`, 
`EndAmPm`, `DateText`, `RSVP`, `RegDay`, `RegMonth`, 
`RegDate`, `RegYear`, `RegComments`, `RegDateFirm`, 
`Recur`, `RecurComments`, `Descrip`, `MoreDescrip`, 
`DigestDescrip`, `DescripOrig`, `ListingType`, `Topic`, 
`Topic2`, `Keywords`, `Address`, `City`, `CityText`, 
`Province`, `Country`, `NearestCity`, `Region`, `Org`, 
`Price`, `ContactName`, `ContactEmail`, `ContactPhone`, 
`ContactFax`, `ContactWeb`, `ContactWeb2`, 
`ContactMore`, `ListWhenPref`)

MySQL said: 
The used command is not allowed with this MySQL version
~~~~~~~~~~~~~~~~~~~~~~~~~~

And yet, on April 1, 2002 (no fooling), I remember
succeeding with the same command (or perhaps
a simlar command elsewhere within the 
PhpMyAdmin interface):

Apr 1 2002:
The content of your file has been inserted. 
SQL-query: 
LOAD DATA LOCAL INFILE '/tmp/phpCeDvVV' INTO TABLE 
event FIELDS TERMINATED BY '|' 
ESCAPED BY '\\' 
LINES TERMINATED BY '~eor~' 
(Publish, DateEntered, EntryMode, DateUpload, EID, 
EIDW, Source, SubmitName, SubmitEmail, SubmitPhone, 
SubmitComments, Title, TitleOrig, StartDay, StartMonth, 
StartDate, StartYear, EndDay, EndMonth, EndDate, 
EndYear, StartHour, StartMinute, StartAmPm, EndHour, 
EndMinute, EndAmPm, DateText, RSVP, RegDay, 
RegMonth, RegDate, RegYear, RegComments, 
RegDateFirm, Recur, RecurComments, Descrip, 
MoreDescrip, DigestDescrip, DescripOrig, ListingType, 
Topic, Topic2, Keywords, Address, City, CityText, 
Province, Country, NearestCity, Region, Org, Price, 
ContactName, ContactEmail, ContactPhone, ContactFax, 
ContactWeb, ContactWeb2, ContactMore, ListWhenPref) 

~~~~~~~~~~~~~~~~~~~~~~~~~~

Thanks for any ideas as to what might 
be going wrong, and how to successfully 
upload a text file into a Flora MySql table...

        - peter blanchard



~~~~~~~~~~~~~~
People- & Planet-Friendly Events, Resources, Jobs & Fun!
http://www.planetfriendly.net
people@planetfriendly.net


Read: [next] [previous] message
List: [newer] [older] articles

Please read the FLORA.org Terms and Conditions before you submit information to FLORA.org
Join the Blue Ribbon Online Free Speech Campaign
(USA) (Canada)
FLORA Community Web (FLORA.ORG) is sponsored by FLORA Community Consulting (FLORA.CA).