Closed GGarrido28 closed 4 years ago
Greetings,
Could you also tell me what operating system you are on, and what the exact error you're getting when you try to upload the data?
I'm working on macOS Catalina (10.15.3).
Error I get:
Gabes-MBP:~ postgres$ psql <data.dump -bash: data.dump: No such file or directory
Tried to calling the directory, then calling psql. Also tried with psql logged in and then calling the directory and got same result. Also tried through pgadmin4 via the "Restore" command which didn't seem to load the tables.
Any ideas or other solutions to importing the file or getting different file formats?
@GGarrido28, that error indicates you're not in the same folder as the file data.dump
. Change directory to where that file is and try again.
As I mentioned before, I had already tried that. The instructions in the book seem to be missing a few steps as I was able to figure out how to load the file after searching for other sources. For future users, these are the steps I took:
PATH=/Library/PostgreSQL/12/bin:$PATH
Gabes-MBP:Datasets gabe$ psql -U gabe sqlda < data.dump
To which then prompted me for my password. Then it finally created all the necessary tables.I did get some role errors after executing the import:
ERROR: role "sqldaadmin" does not exist
ERROR: role "rdsadmin" does not exist
Not sure the importance of them and whether they are needed to follow along with the book, but it appears that everything that is needed was created.
I'm having issues trying to import data.dump into pgadmin4. I've also tried loading it to MySQL workbench with no success. Any chance that this file comes in .csv or in a different file format?