L.s.
L.s.

Reputation: 1

Creating and preparing database postgres "no such file or directory"

During preparing database according to How to import OpenStreetMap data into PostgreSQL i always get error message C:/Program: No such file or directory after writing psql -U postgres -d gis -f PATH_TO_POSTGRES/share/contrib/postgis-1.5/postgis.sql In my case path looks like : C:\Program Files\PostgreSQL\9.3\share\contrib\postgis-2.1\postgis.sql Thank you for help or advices

Upvotes: 0

Views: 1005

Answers (1)

Ilesh Patel
Ilesh Patel

Reputation: 2155

psql -U postgres -d gis 
   -f "C:\Program Files\PostgreSQL\9.3\share\contrib\postgis-2.1\postgis.sql"

Here Program Files is separated with space so you need to add double quote around the path.

Upvotes: 1

Related Questions