C:\Program Files\PostgreSQL\8.3>set PGPORT=5432
C:\Program Files\PostgreSQL\8.3>set PGHOST=localhost
C:\Program Files\PostgreSQL\8.3>set PGUSER=postgres
C:\Program Files\PostgreSQL\8.3>set PGPASSWORD=thx1138
C:\Program Files\PostgreSQL\8.3>set THEDB=template_postgis14
C:\Program Files\PostgreSQL\8.3>set PGBIN=C:\Program Files\PostgreSQL\8.3\bin\
C:\Program Files\PostgreSQL\8.3>"C:\Program Files\PostgreSQL\8.3\bin\\psql" -c
"CREATE DATABASE template_postgis14"
psql: FATAL: authentification par mot de passe échouée pour l'utilisateur « po
stgres »
C:\Program Files\PostgreSQL\8.3>"C:\Program Files\PostgreSQL\8.3\bin\\psql" -d
"template_postgis14" -c "CREATE LANGUAGE plpgsql"
psql: FATAL: authentification par mot de passe échouée pour l'utilisateur « po
stgres »
C:\Program Files\PostgreSQL\8.3>"C:\Program Files\PostgreSQL\8.3\bin\\psql" -d
"template_postgis14" -f "share\contrib\postgis-1.4\postgis.sql"
psql: FATAL: authentification par mot de passe échouée pour l'utilisateur « po
stgres »
C:\Program Files\PostgreSQL\8.3>"C:\Program Files\PostgreSQL\8.3\bin\\psql" -d
"template_postgis14" -f "share\contrib\postgis-1.4\spatial_ref_sys.sql"
psql: FATAL: authentification par mot de passe échouée pour l'utilisateur « po
stgres »
C:\Program Files\PostgreSQL\8.3>"C:\Program Files\PostgreSQL\8.3\bin\\psql" -d
"template_postgis14" -f "share\contrib\postgis-1.4\postgis_comments.sql"
psql: FATAL: authentification par mot de passe échouée pour l'utilisateur « po
stgres »
C:\Program Files\PostgreSQL\8.3>REM Uncomment the below line if this is a templa
te database
C:\Program Files\PostgreSQL\8.3>"C:\Program Files\PostgreSQL\8.3\bin\\psql" -d "
template_postgis14" -c "UPDATE pg_database SET datistemplate = true WHERE datnam
e = 'template_postgis14';GRANT ALL ON geometry_columns TO PUBLIC; GRANT ALL ON s
patial_ref_sys TO PUBLIC"
psql: FATAL: authentification par mot de passe échouée pour l'utilisateur « po
stgres »
C:\Program Files\PostgreSQL\8.3>pause
Appuyez sur une touche pour continuer...
Partager