I am trying to store all the contents of a CSV file into a table row.
Table structure:
Field Type Comment
id bigint(15) NOT NULL Primary key for table
file_id bigint(15) NULL Reference key from filemapper table
file_content longtext NULL Content of the File
dataTime timestamp NOT NULL
Problem arises when I try to do insert in this table with a CSV file, I get an Error "MySQL server has gone away".
I am not trying to split the csv file fields into columns in mysql table
Can anyone suggest another way to do this without causing the error?