Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > mySQL & PHP

Notices

mySQL & PHP Discussions, information and help with mySQL and PHP.

Reply
 
LinkBack Thread Tools
  #1  
Old 08-28-2006, 06:42 PM
Private
 
Join Date: Aug 2006
Posts: 1
Default Data Base Management with myPHPadmin

I am attempting to generate an Excel file (CSV) of products for my online store that I can then upload to my existing SQL database. As a starter to try to get a feel for SQL, I exported my existing data base with the "EXPORT" tab in phpMyadmin to an Excel (CSV) file on my desktop. Then, without making any changes I used the "IMPORT" tab to restore the database. The import process generated the following error:

"ERROR"
"Invalid field count in CSV input on Line 1"

Obviously I am missing something. Is there a control record required as the first record in the Import????If so, what is the format?

Thank you,
Klaus Cook
Houston, Texas
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 09-13-2006, 10:04 PM
Corporal
 
Join Date: Sep 2006
Posts: 11
Default Re: Data Base Management with myPHPadmin

HI Klaus,

When I use to get that error from importing excel/csv files, it was because I didn't name each column, so instead of starting out with "firstname" at the top of each column to allow it to recognize as a first name to then import, I just had the first names. Not sure if it is the same with php, but I would get a very similar error when importing leads into
certain programs.

Scott
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 09-29-2007, 05:52 AM
Private
 
Join Date: Sep 2007
Posts: 1
Default Re: Data Base Management with myPHPadmin

Hi all i am newbie

i also got the same error but after doing some work i got solution. my .csv file look like excel file and i imported it successfully in MYSQL TABLE through phpmyadmin.

make sure you have done following step correctly

empty your table first if it has garbage

1. your cvs file's column name must match your table column name
2. browse your required .csv file
3. select CSV using LOAD DATA options
4. Check box 'ON' for Replace table data with file
5. in Fields terminated by box type ,
6. in Fields enclosed by box "
7. in Fields escaped by box \
8. in Lines terminated by box auto
9. in Column names box type column name seperated by , like column1,column2,column3
10 check box ON for Use LOCAL keyword.

i hope it will work for you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 12:50 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2007 VodaHost.com - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55