I use phpMyAdmin 2.10.0.2 to administer Mysql 5.0
My PHP version is 5.2.1.
Always "affected rows" ends up to be only 1,
when I have over 300 rows in my datafile.
Can you tell me where my import procedure goes wrong?
Here's what I do to populate a table.
After choosing the database in the left pane,
the left pane lists that database's tables.
I select my table in that list.
In the right pane, I hit the Import tab.
Then I browse & "choose the file" that holds my data.
It's an Excel file in my Mac, in the htdocs directory.
My data file has no header row, so I put 0 for
"Number of recs to skip from start".
"Allow interrupt..." - I leave checked.
Not all the fields of the table have their values
columniized in my file, so I will use the
"USE CSV with LOAD DATA" option.
Replace data - I check because
Fields terminated - I put a comma.
Fields enclosed by - Tried blank, single & double quotes.
(I am not sure how Excel or ODT deliver their fields,
but I can massage the daa later in mysql - so I don't worry much about this.
Fields escaped by - Tried default \ and blank.
Lines terminated by - I leave at "auto".
(Could this be my problem?)
Use Local keyword - I check.
In "column names" I enter the column names of the fields that should be populated as per the data coming in,
keeping the names in their respective order as per the spreadsheet's order - separated by commas.
My PHP version is 5.2.1.
Always "affected rows" ends up to be only 1,
when I have over 300 rows in my datafile.
Can you tell me where my import procedure goes wrong?
Here's what I do to populate a table.
After choosing the database in the left pane,
the left pane lists that database's tables.
I select my table in that list.
In the right pane, I hit the Import tab.
Then I browse & "choose the file" that holds my data.
It's an Excel file in my Mac, in the htdocs directory.
My data file has no header row, so I put 0 for
"Number of recs to skip from start".
"Allow interrupt..." - I leave checked.
Not all the fields of the table have their values
columniized in my file, so I will use the
"USE CSV with LOAD DATA" option.
Replace data - I check because
Fields terminated - I put a comma.
Fields enclosed by - Tried blank, single & double quotes.
(I am not sure how Excel or ODT deliver their fields,
but I can massage the daa later in mysql - so I don't worry much about this.
Fields escaped by - Tried default \ and blank.
Lines terminated by - I leave at "auto".
(Could this be my problem?)
Use Local keyword - I check.
In "column names" I enter the column names of the fields that should be populated as per the data coming in,
keeping the names in their respective order as per the spreadsheet's order - separated by commas.