×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Marina Lariutina
Added: Apr 15, 2022 6:07 PM
Views: 45
Tags: no tags
  1.  заходим в базу
  2.  /Applications/Postgres.app/Contents/Versions/14/bin/psql -p5432 "td"
  3.  
  4.  
  5. CREATE USER marina WITH password '123'; создаем юзера
  6. CREATE ROLE
  7. td=# GRANT ALL ON DATABASE td TO marina; наделяем правами
  8. GRANT
  9. td=#
  10.  /Applications/Postgres.app/Contents/Versions/14/bin/psql -p5432 -h localhost td marina
  11.  проверям