简体   繁体   中英

CSV import to AWS Aurora MySQL(5.6) with DataGrip dropping connection

I'm trying to import a 100MB csv file into a database using DataGrip.

I have connection to the database and can run queries, but when I do the "Import data from file" action I keep getting this error.

在此处输入图像描述

You can see in the screenshot that it imports > 31 000 rows before dropping the connection.

Driver information

在此处输入图像描述

Any ideas on what could be reason?

I wrote a script that reads the csv file and inserts each record line by line, but it's slow as hell and I'd like to solve this.

Seems to be related to DNS cache. Try to switch to MariaDB driver and use jdbc:mariadb:aurora// prefix in jdbc url

Full template: jdbc:mariadb:aurora://[clusterInstanceEndPoint[:port]]/[database][?<key1>=<value1>[&<key2>=<value2>]…] )

Based on AWS Aurora user guide and Aurora connection management guide .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM