wangalex

Untitled

Dec 15th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. wangalex1@ubuntu:~$ scp /home/wangalex1/Downloads/zen.dump admin@84.201.162.218:zen.dump 100% 7145KB 2.2MB/s 00:03
  2. wangalex1@ubuntu:~$ ssh admin@84.201.162.218
  3. Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-55-generic x86_64)
  4.  
  5. * Documentation: https://help.ubuntu.com
  6. * Management: https://landscape.canonical.com
  7. * Support: https://ubuntu.com/advantage
  8.  
  9. * Overheard at KubeCon: "microk8s.status just blew my mind".
  10.  
  11. https://microk8s.io/docs/commands#microk8s.status
  12.  
  13. * Canonical Livepatch is available for installation.
  14. - Reduce system reboots and improve kernel security. Activate at:
  15. https://ubuntu.com/livepatch
  16. Last login: Sun Dec 15 17:12:10 2019 from 128.68.154.145
  17. admin@automation-test1:~$ createdb zen --encoding='utf-8'
  18. createdb: could not connect to database template1: FATAL: role "admin" does not exist
  19. admin@automation-test1:~$ sudo -u postgres psql;
  20. psql (10.10 (Ubuntu 10.10-0ubuntu0.18.04.1))
  21. Type "help" for help.
  22.  
  23. postgres=# createdb zen --encoding='utf-8'
  24. postgres-# \c zen
  25. You are now connected to database "zen" as user "postgres".
  26. zen-# pg_restore -d zen zen.dump
  27. zen-# \q
  28. admin@automation-test1:~$ sudo -u postgres psql;
  29. psql (10.10 (Ubuntu 10.10-0ubuntu0.18.04.1))
  30. Type "help" for help.
  31.  
  32. postgres=# pg_restore -d zen zen.dump
  33. postgres-# \l
  34. postgres-# \c zen
  35. You are now connected to database "zen" as user "postgres".
  36. zen-# \dt
  37. Did not find any relations.
  38. zen-# \d
  39. Did not find any relations.
  40. zen-#
Add Comment
Please, Sign In to add comment