pgsql-create-db-user:postgresql_create_database_user
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| pgsql-create-db-user:postgresql_create_database_user [2019/01/11 16:03] – [Autoriser les connections authentifiées en local pour posgresql] rguyader | pgsql-create-db-user:postgresql_create_database_user [2023/05/23 08:56] (Version actuelle) – [Autoriser les connections authentifiées en local pour posgresql] ghusson | ||
|---|---|---|---|
| Ligne 4: | Ligne 4: | ||
| <code bash> | <code bash> | ||
| - | cp -a / | + | |
| - | sed -i " | + | export PGSQL_DB_NAME=db_mydbname |
| + | export PGSQL_USERNAME=myusername | ||
| + | export PGSQL_USERPWD=mypassword | ||
| + | |||
| + | |||
| + | apt install postgresql | ||
| + | cp -a / | ||
| + | sed -i " | ||
| service postgresql stop | service postgresql stop | ||
| service postgresql start | service postgresql start | ||
| - | </ | ||
| - | PGSQL_DB_NAME=db_horde | ||
| - | PGSQL_USERNAME=hordeu | ||
| - | PGSQL_USERPWD=password | ||
| - | <code bash> | + | cd / |
| /bin/su postgres --command "/ | /bin/su postgres --command "/ | ||
| /bin/su postgres --command "/ | /bin/su postgres --command "/ | ||
| /bin/su postgres --command "/ | /bin/su postgres --command "/ | ||
| /bin/su postgres --command "/ | /bin/su postgres --command "/ | ||
| + | |||
| </ | </ | ||
| Ligne 45: | Ligne 49: | ||
| \q | \q | ||
| </ | </ | ||
| + | |||
| + | ===== Cheat Sheets ===== | ||
| + | * http:// | ||
| + | * https:// | ||
pgsql-create-db-user/postgresql_create_database_user.1547222636.txt.gz · Dernière modification : 2019/01/11 16:03 de rguyader