node-mysql2
node-mysql2 copied to clipboard
Error EPROTO when load local data infile to database with SSL
Hello everyone,
I'm trying yo bulk to mysql database a file with 4GB with SSL certificate and after sometime of process start I'm getting this error: - Error: LOAD DATA LOCAL INFILE CSV_FILE IGNORE INTO TABLE TABLE FIELDS TERMINATED BY '~#' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\n' IGNORE 0 LINES (COLUMNS) - write EPROTO
this is mysql connection object:
{ "connection": { "host": "127.0.0.1", "user": "user", "password": "password", "database": "database", "port": 3306, "ssl": "Amazon RDS", "decimalNumbers": true, "jsonStrings": true } }
I'm using node 20.15.1
Can someone have a idea what's cause this problem?