I have MySQL table that I like to populate with load data infile.
One of the column is a JSON type, to which I want to upload an entire json string. The problem is that it seems really hard to upload the json string, where I get:
Invalid utf8 character string: '{'
A row from my CSV file:
25621943694,john,johnny,ACTIVE,organization,1234,{\”name\”: \”cicd-prod\”},2016-10-22 16:57:36
My load data statement:
LOAD DATA LOCAL INFILE 'test123.csv'
INTO TABLE projects
FIELDS TERMINATED BY ',' (project_number,project_id,project_name,lifecycle_state,parent_type,parent_id,raw_project,create_time);
”isn't a normal quote character.... 1234, "{ 'name':'cicd-prod'}",2016-10-22 16:57:36