'Import file using DBeaver
I currently use Mysql Workbeanch and I want to move to DBeaver as it is an all in for multiple databases.
However I use a function to import a CSV from Amazon S3 buckets as follows
LOAD DATA FROM S3 's3-eu-west-2://csv-files/OCN04.txt'
INTO TABLE OCN
FIELDS TERMINATED BY '\t'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS
;
This function does not work in DBEAVER
Solution 1:[1]
Load data infile works but i am guessing the file path is the issue here. I'm guessing that dbeaver only reads file from a specific directory. To know the specific/default directory, you try running the above code with simply the name of your file (i.e. 'OCN04.txt'). The error message will show the file path. Save your txt file in that directory and try running your code again.
The above method works for me.
Solution 2:[2]
On DBeaver you can import data from file into a table with the Gui.
Rigth-click on the table and select "import data" menu.
and select the file to import.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Joyce |
Solution 2 | Misael Paredes |