I created a new table in the database but whenever I try to access it with an existing PHP system I get the following error message: permission denied for relation myTable
When I check in the connect file in PHP they connect like this $conn = pg_Connect("","","","","database"); which I think is not the best way to connect to a database, but I can’t change this for a couple of reasons.
Ho can I grant priveliges to myTable in Postgres for an unknown user?
This is what I was thinking
database=> grant all on myTable to "";
Is this the correct way to go?
You could try:
Or:
Documentation.
Be wary of giving more permissions than needed to anonymous users, though.