Permission denied SQL

65 Views Asked by At

I try to create a table using a file created from mackaroo, so I tried to copy add the SQL file in terminal using this command "\i"

test=# \i /home/omar/Documents/person.sql

but I get

/home/omar/Documents/person.sql: Permission denied

Even though, I grant all privilege, and set the file to read & write, I tried every single step, remained unsuccessful.

I tried this grant command:

grant all 
chmod +r 
0

There are 0 best solutions below