Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Importing Category Structure query

Quote Reply
Importing Category Structure query
Hi

I am trying to use MySQL Man utility in Links SQL to import some specific fields into my database without success Unsure I am hoping that this will save me a few hours having to manually re-enter them from admin.

Having exported them from a Windows based application into a delimited txt file, I have the following data (sample shown, actual file includes over 1,000 records):

1|Golf Courses|0|Golf Courses
2|Golf & Country Clubs|0|Golf & Country Clubs
3|Driving ranges|0|Driving ranges
4|England|1|Golf Courses/England

where "|" is the delimiter.

The four specific fields I am trying to import are ID, Name, FatherID and Full_Name.

Using the import function on MySQL, I have performed the following:

(1) selected the file off my PC
(2) selected the specific fields using the checkbox, and moved the four fields over to the 'selected' box
(3) local import & do not show error message both checked
(4) fields: delimiter "|"
(5) fields: escape character "blank"
(6) records: delimiter "\n"
(7) records: Ignore first "0" lines

but I just get garbage imported into the fields. I have tried playing around with the fields / records with no success.

Any suggestions as to where I may be going wrong?

Thanks in advance

Valiant
Quote Reply
Re: [valiant] Importing Category Structure query In reply to
Have you tried importing the categories by going to database - category properties - import and then either import from file (in admin directory) or from screen?
Quote Reply
Re: [Alba] Importing Category Structure query In reply to
I had tried before but it gave me an error.

I have re-installed Links and now I have imported successfully from admin - cheers alba!