Support Forums

Data Import Problem on a Windows Server

This is a discussion on Data Import Problem on a Windows Server within the Off Topic forums, part of the General category; Hello I have just imported a test database of listings into my business directory. All went ok except I have ...


Go Back   68 Classifieds Forums > General > Off Topic

Reply
 
Thread Tools Display Modes
Old 10-07-2006, 12:13 PM   #1
Senior Member
 
Join Date: Apr 2006
Posts: 103
Rep Power: 25
sporthorsebreeder will become famous soon enough
Default Data Import Problem on a Windows Server

Hello
I have just imported a test database of listings into my business directory.

All went ok except I have noticed that the many categories and sub-categories have been added again even though they were already in the categories setup.

When the directory was installed the categories were imported in and the database is using UTF-8 collation/charset and its adding \r\n to the end of the entries for some reason.

I don't know a great deal about php and mySQL but I had a search on the internet and what I can gather is that the \r\n characters that are being added are because php and mySQL are being hosted on a Windows server.

I fould this on one website

Quote:
If you are connecting from a Windows based machine, the Lines terminated by entry should normally be set to \r\n (the default suggested by phpMyAdmin). Windows uses both a carriage return character (\r) and a newline character (\n) to terminate the lines of text files. If your text file contains values for every field, listed in the same order as the fields are defined in the MySQL table, then the Column names box can be left blank. Finally, click Submit to upload the data file to the server and the records will be automatically appended to the table.


Has anyone else found this problem when importing data to a mysql database and what is the best way to fix it?

I am running
Windows Server 2003 running IIS v6
PHP Version 5.0.5
mysql 4.1.7
phpMyAdmin 2.6.4-pl4

Thanks for any help.
Hugh
sporthorsebreeder is offline   Reply With Quote
Old 10-07-2006, 09:31 PM   #2
Senior Member
 
gregbatch's Avatar
 
Join Date: Jun 2006
Posts: 170
Rep Power: 25
gregbatch is on a distinguished road
Default

Not sure why you are importing categories. Categories shouldn't need to be uploaded with an import. Your data import file should mirror the products table, which references the categories in the category table numerically.

I'm not sure about the carriage return issue.
__________________
Greg
3.1.4 Designer
gregbatch is offline   Reply With Quote
Old 10-08-2006, 06:23 AM   #3
Senior Member
 
Join Date: Apr 2006
Posts: 103
Rep Power: 25
sporthorsebreeder will become famous soon enough
Default

Hi Greg
Thanks for your reply but the data import is not for 68Classifieds it is for my Business Directory another programme completely. That is why I posted it in Off Topic.
Cheers
Hugh
sporthorsebreeder is offline   Reply With Quote
Old 10-08-2006, 03:41 PM   #4
Senior Member
 
gregbatch's Avatar
 
Join Date: Jun 2006
Posts: 170
Rep Power: 25
gregbatch is on a distinguished road
Default

Sorry about the misunderstanding.
__________________
Greg
3.1.4 Designer
gregbatch is offline   Reply With Quote
Old 10-09-2006, 08:49 AM   #5
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

What method did you use to do the export and import?
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Server BarrySmith Pre Sales Questions 18 06-11-2006 11:49 AM


All times are GMT -4. The time now is 10:32 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0