I am having issues that I can't explain. My load data file code and the text files are being used on another site of mine and work perfectly. On another site of mine they are not correctly mapping to the correct columns of the database on import.
Here is my load data file code:
LOAD DATA LOCAL INFILE './Multi-Family w_4+ Units.txt' INTO TABLE tilistings FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\r\n' IGNORE 1 LINES
(id, price, unit, complex_name, city, county, street_number, directional, address, zipcode, location, primary_area, secondary_area, bedrooms, baths, half_baths, furnished, sq_ft, amenities, listing_office, listing_agent, year_built, other_encl_sq_ft, property_type, num_rooms, type_style, flood_zone, federal_flood, cobra zone, city_taxes, county_taxes, hoa_dues, hoa_period, construction, roof, floors, foundation, heating_system, cooling_system, water_sewer, parking, appliances, interior_features, exterior_features, included_hoa_dues, owner_expenses, remarks_1, virtual_tour, sq_ft, display, display_address, reo, short_sale);
I have attached a sample of the text file to this message.
There are many columns from the text file being placed wrong.
I can't seem to figure out why this worked on the windows server, but not on this linux server I am now on.
Please someone help me!
MLS # List Price Unit # Complex Name City County Street # Direction Address Zip Code Location Primary Area Secondary Area Bedrooms Full Baths 1/2 Baths Furnished Apx Heated SqFt Range Amenities Listing Office Listing Agent Year Built Other Enclosed SqFt Property Type Rooms Type & Style Flood Zone Federal Flood Cobra Zone City Taxes County Taxes OA $ OA Paid Construction Roof Floors Foundation Heating System Cooling System Water/Sewer Parking Appliances Interior Features Exterior Features Included HOA Dues Owner Expenses Remarks Virtual Tour Apx Heated SqFt Display on Internet Display Address REO Short Sale
28390 245000 61 BERMUDA LANDING NORTH TOPSAIL BEACH Onslow 61 BERMUDA LANDING 28460 North Topsail Beach,Onslow County Island Interior Island Interior 2 2 0 False 800-1000 Swimming Pool,Pier/Dock 19 1 1987 112 M 4 Townhouse True True False 304.76 1172 266 QTR Other-See Remarks Composition Shingle Carpet,Vinyl Concrete Slab,Pilings Heat Pump Heat Pump Public Water,Public Sewer Single Garage Range/Oven,Vent/Hood,Dishwasher,Refrigerator,W/D Connection Ceiling Fans,Window Treatments,Great Room,Dining Area,Cable TV Drive-Paved,Deck(s) Lawn Care,Exterior Maintenance,Common Area Maintenance Cable TV/Satellite,Electric,Trash Removal,Sewer,Water,Telephone,Building Insurance APPLIANCES AND CARPETING NEW. VIEW OF OCEAN FROM 2ND. FLOOR. SOUND VIEW FROM LIVING AREA. 832 True True False False