node-mysql2 icon indicating copy to clipboard operation
node-mysql2 copied to clipboard

Error EPROTO when load local data infile to database with SSL

Open joaoribeiro1498 opened this issue 8 months ago • 0 comments

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?

joaoribeiro1498 avatar Mar 20 '25 15:03 joaoribeiro1498