I using docker and then install postgres . Now i want export one table from postgres and insert it into mysql. I using command step by step command look like:
On database postgres I access to docker container and running command
\copy users TO '/Users/maclocaluser/abc.csv' WITH CSV HEADER DELIMITER ';'
But it thow me exception : /Users/maclocaluser/abc.csv: No such file or directory
But when i using tool dbever or pgadmin it export success. Not error.
And then when i want import into mysql using docker i using command :
LOAD DATA LOCAL INFILE '/Users/maclocaluser/abc.csv' INTO TABLE users FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' IGNORE 1 ROWS;
It same thow me exception :
File '/Users/maclocaluser/abc.csv' not found (Errcode: 2 - No such file or directory) but it exist my dictory.
How to export and import it on mac . When i using ubuntu it run success. I using tool mysql or dbever it import success but command line is not.