Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 6th, 2007, 09:13 AM
Authorized User
 
Join Date: Jun 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem importing CSV

Hi,

I am a complete newbie to MySQL!

I am trying to import a CSV file using phpMyAdmin.

I have uploaded the CSV file via FTP to the root directory on my external server (GoDaddy).

Then in phpMyAdmin I ran the following query:

Code:
load data local infile 'resdatatest2.csv' into table tblNewsletterSubs
fields terminated by ','
lines terminated by '\n'
(ID, EcastID, Email, ActiveSub)
phpMyAdmin then says the file has imported but with Inserted rows: -1
so no data is being imported. It should have imported 284 rows, not -1 !

Here is my table structure:
Field Type
ID int(7)
EcastID int(3)
Email varchar(75)


Please help





Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing data from a CSV file? kr33 SQL Server 2000 26 January 3rd, 2007 02:38 AM
Importing CSV inspiron SQL Server DTS 1 October 24th, 2006 03:17 PM
Importing a CSV file into SQL rsmuts ASP.NET 1.0 and 1.1 Professional 2 July 24th, 2006 10:14 AM
Importing data from .csv Spitzbucket PHP Databases 0 February 20th, 2005 01:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.