Attempting to load a file into the DB.
CREATE TEMPORARY TABLE IF NOT EXISTS tt_emails (
id INT PRIMARY KEY AUTO_INCREMENT,
util_account_id VARCHAR(40) NULL,
email VARCHAR(344) NOT NULL,
optout INT NOT NULL
);
LOAD DATA INFILE '/shared/implementation/emails.tsv'
INTO TABLE tt_emails (util_account_id, email, optout);
The emails.tsv file has 3 columns, while the temporary table I made has 4. I'm not sure if this is correct syntax; I included a 4th column to have an id primary key column.
I get the following error when I run this code:
ERROR 13 (HY000): Can't get stat of '/nfs/shared/implementation/ngma/CO-48812_NGMA_Load_email/exclude_emails.tsv' (Errcode: 13)