This commit is contained in:
14
startsql.bat
14
startsql.bat
@@ -1,9 +1,12 @@
|
||||
REM docker start dock-pg10 dock-pgadmin
|
||||
REM docker run --rm --name pg -p 5432:5432 -e POSTGRES_PASSWORD=raven -e POSTGRES_DB=AyaNova -d postgres:latest
|
||||
REM GONE PORTABLE INSTEAD
|
||||
rem start C:\data\code\PostgreSQLPortable_12.0\postgresqlportable.exe
|
||||
@rem this is to initialize a new db first time a new version is set up of postgres
|
||||
@rem c:\data\code\postgres_14\bin\initdb -D ^"C^:^\data^\code^\postgres^_14^\ayanova^" -U postgres -A trust
|
||||
|
||||
C:\data\code\postgres_13\bin\pg_ctl -D ^"C^:^\data^\code^\postgres^_13^\ayanova^" -l logfile start
|
||||
@rem old version
|
||||
@rem C:\data\code\postgres_13\bin\pg_ctl -D ^"C^:^\data^\code^\postgres^_13^\ayanova^" -l logfile start
|
||||
C:\data\code\postgres_14\bin\pg_ctl -D ^"C^:^\data^\code^\postgres^_14^\ayanova^" -l logfile start
|
||||
ECHO Press any key to stop POSTGRES database server
|
||||
pause
|
||||
C:\data\code\postgres_14\bin\pg_ctl -D ^"C^:^\data^\code^\postgres^_14^\ayanova^" stop
|
||||
|
||||
@REM @ECHO OFF
|
||||
@REM setlocal
|
||||
@@ -13,6 +16,7 @@ C:\data\code\postgres_13\bin\pg_ctl -D ^"C^:^\data^\code^\postgres^_13^\ayanova^
|
||||
@REM SET PGUSER=postgres
|
||||
@REM SET PGPORT=5432
|
||||
@REM SET PGLOCALEDIR=%~dp0postgres\share\locale
|
||||
|
||||
@REM "%~dp0\postgres\bin\pg_ctl" -D "%~dp0/data/database" -l %~dp0data\logs\postgreslog start
|
||||
|
||||
@REM ECHO Press any key to stop POSTGRES database server
|
||||
|
||||
Reference in New Issue
Block a user