VladikOtez

PG start

Jun 20th, 2017
160
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. Вышел из консоли базы
RAW Paste Data