Advertisement
VladikOtez

PG start

Jun 20th, 2017
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. Сначала в терминале создадим базу.
  2. sudo su postgres -c psql
  3. --------------------------
  4. CREATE DATABASE test;
  5. ---------------------------
  6. CREATE USER pavel WITH PASSWORD 'suka';
  7. --------------------------------------
  8. GRANT ALL PRIVILEGES ON DATABASE test to pavel;
  9. ---------------------------------------------
  10. Вышел из консоли базы
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement