You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're a Windows 10 user, you may need to set permissions for the folder holding the code and data for the book. If you don't, you may see an error similar to this:
ERROR: could not open file "C:\YourDirectory\us_counties_2010.csv" for reading: Permission denied
HINT: COPY FROM instructs the PostgreSQL server process to read a file. You may want a client-side facility such as psql's \copy.
SQL state: 42501
To correct this, follow the directions in the note on page xxvii of the Introduction (Practical SQL 1st edition), in the section "Using the Book's Code Examples":
After downloading data, Windows users might need to provide permission for the
database to read files. To do so, right-click the folder containing the code and data,
select Properties, and click the Security tab. Click Edit, then Add. Type the name
Everyone into the object names box and click OK. Highlight Everyone in the user
list, select all boxes under Allow, and then click Apply and OK.
The text was updated successfully, but these errors were encountered:
Hi! I did all this from A to Z and still unfortunately had the same error.
This still showed: ERROR: could not open file "C:\YourDirectory\us_counties_2010.csv" for reading: Permission denied
HINT: COPY FROM instructs the PostgreSQL server process to read a file. You may want a client-side facility such as psql's \copy.
SQL state: 42501
I followed the directions in the note as well allowing permission and all etc.
Help please as I could not go on with my learning :(
oh sorry, I just copied and pasted the error on your post assuming it was the same on mine. But the error did show technically the same thing but with my own directory.
I got it figured out. I deleted and re-downloaded the github data and followed the book's instructions once more. AND on top of that, I had to do some extra googling where I had to change file ownership after already specifying the "Everyone" conditions that was stated in the book. Thank you though!
If you're a Windows 10 user, you may need to set permissions for the folder holding the code and data for the book. If you don't, you may see an error similar to this:
To correct this, follow the directions in the note on page xxvii of the Introduction (Practical SQL 1st edition), in the section "Using the Book's Code Examples":
The text was updated successfully, but these errors were encountered: