Advertisement
Guest User

Untitled

a guest
Mar 13th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. sudo apt-get install postgresql
  2.  
  3. sudo -u postgres psql postgres
  4. password postgres
  5.  
  6. sudo -u postgres createdb mydb
  7.  
  8. psql -U postgres -h localhost
  9. Password for user postgres:
  10. psql (9.1.4)
  11. SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)
  12. postgres=#
  13.  
  14. development:
  15. adapter: postgresql
  16. encoding: unicode
  17. database: mydb_development
  18. pool: 5
  19. username: postgres
  20. password: postgres
  21.  
  22. test:
  23. adapter: postgresql
  24. encoding: unicode
  25. database: mydb_test
  26. pool: 5
  27. username: postgres
  28. password: postgres
  29.  
  30. production:
  31. adapter: postgresql
  32. encoding: unicode
  33. database: mydb_production
  34. pool: 5
  35. username: postgres
  36. password: postgres
  37.  
  38. rake aborted!
  39. FATAL: Peer authentication failed for user "postgres"
  40.  
  41. rake aborted!
  42. couldn't parse YAML at line 28 column 0
  43.  
  44. development:
  45. adapter: postgresql
  46. encoding: unicode
  47. database: hackathonio_development
  48. pool: 5
  49. username: postgres
  50. password: testing
  51. host: localhost {This is line 28}
  52.  
  53. $ createuser <username>
  54.  
  55. $ rake db:create
  56.  
  57. $ rake db:migrate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement