mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-10-29 18:05:30 +08:00
pg_ctl,pg_restore,createdb: add short/long options (#21922)
This commit is contained in:
@@ -5,20 +5,20 @@
|
||||
|
||||
- Inicia un nuevo grupo de base de datos PostgreSQL:
|
||||
|
||||
`pg_ctl -D {{directorio_de_datos}} init`
|
||||
`pg_ctl {{[-D|--pgdata]}} {{directorio_de_datos}} init`
|
||||
|
||||
- Inicia un servidor PostgreSQL:
|
||||
|
||||
`pg_ctl -D {{directorio_de_datos}} start`
|
||||
`pg_ctl {{[-D|--pgdata]}} {{directorio_de_datos}} start`
|
||||
|
||||
- Detiene un servidor PostgreSQL:
|
||||
|
||||
`pg_ctl -D {{directorio_de_datos}} stop`
|
||||
`pg_ctl {{[-D|--pgdata]}} {{directorio_de_datos}} stop`
|
||||
|
||||
- Reinicia un servidor PostgreSQL:
|
||||
|
||||
`pg_ctl -D {{directorio_de_datos}} restart`
|
||||
`pg_ctl {{[-D|--pgdata]}} {{directorio_de_datos}} restart`
|
||||
|
||||
- Recarga la configuración del servidor PostgreSQL:
|
||||
|
||||
`pg_ctl -D {{directorio_de_datos}} reload`
|
||||
`pg_ctl {{[-D|--pgdata]}} {{directorio_de_datos}} reload`
|
||||
|
||||
@@ -5,24 +5,24 @@
|
||||
|
||||
- Restaura un archivo en una base de datos existente:
|
||||
|
||||
`pg_restore -d {{nombre_base_de_datos}} {{archivo_de_datos.dump}}`
|
||||
`pg_restore {{[-d|--dbname]}} {{nombre_base_de_datos}} {{archivo_de_datos.dump}}`
|
||||
|
||||
- Igual que antes, utilizando un nombre de usuario:
|
||||
|
||||
`pg_restore -U {{usuario}} -d {{nombre_base_de_datos}} {{archivo_de_datos.dump}}`
|
||||
`pg_restore {{[-U|--username]}} {{usuario}} {{[-d|--dbname]}} {{nombre_base_de_datos}} {{archivo_de_datos.dump}}`
|
||||
|
||||
- Lo mismo que antes, usando un nombre de equipo y puerto:
|
||||
|
||||
`pg_restore -h {{equipo}} -p {{puerto}} -d {{nombre_base_de_datos}} {{archivo_de_datos.dump}}`
|
||||
`pg_restore {{[-h|--host]}} {{equipo}} {{[-p|--port]}} {{puerto}} {{[-d|--dbname]}} {{nombre_base_de_datos}} {{archivo_de_datos.dump}}`
|
||||
|
||||
- Lista los objetos de bases de datos incluidos en el archivo:
|
||||
|
||||
`pg_restore --list {{archivo_de_datos.dump}}`
|
||||
`pg_restore {{[-l|--list]}} {{archivo_de_datos.dump}}`
|
||||
|
||||
- Limpia los objetos de base de datos antes de crearlos:
|
||||
|
||||
`pg_restore --clean -d {{nombre_base_de_datos}} {{archivo_de_datos.dump}}`
|
||||
`pg_restore {{[-c|--clean]}} {{[-d|--dbname]}} {{nombre_base_de_datos}} {{archivo_de_datos.dump}}`
|
||||
|
||||
- Utiliza múltiples trabajos para hacer la restauración:
|
||||
|
||||
`pg_restore -j {{2}} -d {{nombre_base_de_datos}} {{archivo_de_datos.dump}}`
|
||||
`pg_restore {{[-j|--jobs]}} {{2}} {{[-d|--dbname]}} {{nombre_base_de_datos}} {{archivo_de_datos.dump}}`
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
|
||||
- ساخت یک دیتابیس که صاحب آن یک کاربر خاص باشد و توضیحاتی درمورد آن نیز ارائه شده باشد:
|
||||
|
||||
`createdb --owner {{username}} {{database_name}} '{{description}}'`
|
||||
`createdb {{[-O|--owner]}} {{username}} {{database_name}} '{{description}}'`
|
||||
|
||||
- ساخت یک دیتابیس از روی یک قالب:
|
||||
|
||||
`createdb --template {{template_name}} {{database_name}}`
|
||||
`createdb {{[-T|--template]}} {{template_name}} {{database_name}}`
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
|
||||
- 설명과 함께 특정 사용자가 소유한 데이터베이스를 생성:
|
||||
|
||||
`createdb --owner {{사용자명}} {{데이터베이스_이름}} '{{설명}}'`
|
||||
`createdb {{[-O|--owner]}} {{사용자명}} {{데이터베이스_이름}} '{{설명}}'`
|
||||
|
||||
- 템플릿에서 데이터베이스를 생성:
|
||||
|
||||
`createdb --template {{템플릿_이름}} {{데이터베이스_이름}}`
|
||||
`createdb {{[-T|--template]}} {{템플릿_이름}} {{데이터베이스_이름}}`
|
||||
|
||||
@@ -5,20 +5,20 @@
|
||||
|
||||
- 새로운 PostgreSQL 데이터베이스 클러스터 초기화:
|
||||
|
||||
`pg_ctl -D {{데이터_디렉토리}} init`
|
||||
`pg_ctl {{[-D|--pgdata]}} {{데이터_디렉토리}} init`
|
||||
|
||||
- PostgreSQL 서버 시작:
|
||||
|
||||
`pg_ctl -D {{데이터_디렉토리}} start`
|
||||
`pg_ctl {{[-D|--pgdata]}} {{데이터_디렉토리}} start`
|
||||
|
||||
- PostgreSQL 서버 중지:
|
||||
|
||||
`pg_ctl -D {{데이터_디렉토리}} stop`
|
||||
`pg_ctl {{[-D|--pgdata]}} {{데이터_디렉토리}} stop`
|
||||
|
||||
- PostgreSQL 서버 재시작:
|
||||
|
||||
`pg_ctl -D {{데이터_디렉토리}} restart`
|
||||
`pg_ctl {{[-D|--pgdata]}} {{데이터_디렉토리}} restart`
|
||||
|
||||
- PostgreSQL 서버 설정 다시 로드:
|
||||
|
||||
`pg_ctl -D {{데이터_디렉토리}} reload`
|
||||
`pg_ctl {{[-D|--pgdata]}} {{데이터_디렉토리}} reload`
|
||||
|
||||
@@ -5,24 +5,24 @@
|
||||
|
||||
- 기존 데이터베이스에 아카이브 복원:
|
||||
|
||||
`pg_restore -d {{데이터베이스_이름}} {{아카이브_파일.dump}}`
|
||||
`pg_restore {{[-d|--dbname]}} {{데이터베이스_이름}} {{아카이브_파일.dump}}`
|
||||
|
||||
- 위와 동일하며, 사용자 이름 커스터마이즈:
|
||||
|
||||
`pg_restore -U {{사용자_이름}} -d {{데이터베이스_이름}} {{아카이브_파일.dump}}`
|
||||
`pg_restore {{[-U|--username]}} {{사용자_이름}} {{[-d|--dbname]}} {{데이터베이스_이름}} {{아카이브_파일.dump}}`
|
||||
|
||||
- 위와 동일하며, 호스트 및 포트 커스터마이즈:
|
||||
|
||||
`pg_restore -h {{호스트}} -p {{포트}} -d {{데이터베이스_이름}} {{아카이브_파일.dump}}`
|
||||
`pg_restore {{[-h|--host]}} {{호스트}} {{[-p|--port]}} {{포트}} {{[-d|--dbname]}} {{데이터베이스_이름}} {{아카이브_파일.dump}}`
|
||||
|
||||
- 아카이브에 포함된 데이터베이스 객체 목록:
|
||||
|
||||
`pg_restore --list {{아카이브_파일.dump}}`
|
||||
`pg_restore {{[-l|--list]}} {{아카이브_파일.dump}}`
|
||||
|
||||
- 데이터베이스 객체를 생성하기 전에 삭제:
|
||||
|
||||
`pg_restore --clean -d {{데이터베이스_이름}} {{아카이브_파일.dump}}`
|
||||
`pg_restore {{[-c|--clean]}} {{[-d|--dbname]}} {{데이터베이스_이름}} {{아카이브_파일.dump}}`
|
||||
|
||||
- 여러 작업을 사용하여 복원:
|
||||
|
||||
`pg_restore -j {{2}} -d {{데이터베이스_이름}} {{아카이브_파일.dump}}`
|
||||
`pg_restore {{[-j|--jobs]}} {{2}} {{[-d|--dbname]}} {{데이터베이스_이름}} {{아카이브_파일.dump}}`
|
||||
|
||||
Reference in New Issue
Block a user