Advertisement
geotheory

Untitled

Apr 13th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.55 KB | None | 0 0
  1. ## This is how I set up the database (after apt-get installs)
  2.  
  3. su - postgres
  4. psql
  5. \password postgres
  6. mypsswd
  7. mypsswd
  8. \q
  9. exit
  10.  
  11. ## Then I import database settings to postgres: this is ODKAggregate - https://opendatakit.org/use/aggregate/tomcat-install/
  12.  
  13. su - postgres
  14. psql
  15. \cd /home/edison
  16. \i create_db_and_user.sql
  17. \q
  18. exit
  19.  
  20. ## Now I've created some records, and try to access them.
  21.  
  22. \c odk-mm
  23. ou are now connected to database "odk-mm" as user "postgres".
  24. odk-mm=# \d
  25. List of relations
  26. Schema | Name | Type | Owner
  27. --------+------------+-------+----------
  28. public | c3po_alive | table | odk_user
  29. (1 row)
  30.  
  31. dk-mm=# \dt *.*
  32. List of relations
  33. Schema | Name | Type | Owner
  34. --------------------+-------------------------------------------------------+-------+----------
  35. information_schema | sql_features | table | postgres
  36. information_schema | sql_implementation_info | table | postgres
  37. information_schema | sql_languages | table | postgres
  38. information_schema | sql_packages | table | postgres
  39. information_schema | sql_parts | table | postgres
  40. information_schema | sql_sizing | table | postgres
  41. information_schema | sql_sizing_profiles | table | postgres
  42. odk-mm-schema | 01_RESCUED_PEOPLE_DATA_FORM_0_1_CORE | table | odk_user
  43. odk-mm-schema | 01_RESCUED_PEOPLE_DATA_FORM_0_1_DETAILS_VULNERABILITY | table | odk_user
  44. odk-mm-schema | 02_RESCUED_VESSEL_DETAILS_0_1_CORE | table | odk_user
  45. odk-mm-schema | _backend_actions | table | odk_user
  46. odk-mm-schema | _filter_group | table | odk_user
  47. odk-mm-schema | _form_data_model | table | odk_user
  48. odk-mm-schema | _form_info | table | odk_user
  49. odk-mm-schema | _form_info_fileset | table | odk_user
  50. odk-mm-schema | _form_info_manifest_bin | table | odk_user
  51. odk-mm-schema | _form_info_manifest_blb | table | odk_user
  52. odk-mm-schema | _form_info_manifest_ref | table | odk_user
  53. odk-mm-schema | _form_info_submission_association | table | odk_user
  54. odk-mm-schema | _form_info_xform_bin | table | odk_user
  55. odk-mm-schema | _form_info_manifest_blb | table | odk_user
  56. odk-mm-schema | _form_info_manifest_ref | table | odk_user
  57. odk-mm-schema | _form_info_submission_association | table | odk_user
  58. odk-mm-schema | _form_info_xform_bin | table | odk_user
  59. odk-mm-schema | _form_info_xform_ref | table | odk_user
  60. odk-mm-schema | _form_service_cursor_2 | table | odk_user
  61. odk-mm-schema | _granted_authority_hierarchy | table | odk_user
  62. odk-mm-schema | _misc_tasks | table | odk_user
  63. odk-mm-schema | _persistent_result_file_bin | table | odk_user
  64. odk-mm-schema | _persistent_result_file_blb | table | odk_user
  65. odk-mm-schema | _persistent_result_file_ref | table | odk_user
  66. odk-mm-schema | _persistent_results | table | odk_user
  67. odk-mm-schema | _registered_users | table | odk_user
  68. odk-mm-schema | _security_revisions | table | odk_user
  69. odk-mm-schema | _server_preferences_properties | table | odk_user
  70. odk-mm-schema | _task_lock | table | odk_user
  71. odk-mm-schema | _user_granted_authority | table | odk_user
  72. pg_catalog | pg_aggregate | table | postgres
  73. pg_catalog | pg_am | table | postgres
  74. pg_catalog | pg_amop | table | postgres
  75. pg_catalog | pg_amproc | table | postgres
  76. pg_catalog | pg_attrdef | table | postgres
  77. pg_catalog | pg_attribute | table | postgres
  78. pg_catalog | pg_auth_members | table | postgres
  79. pg_catalog | pg_authid | table | postgres
  80. pg_catalog | pg_cast | table | postgres
  81. pg_catalog | pg_collation | table | postgres
  82. pg_catalog | pg_constraint | table | postgres
  83. pg_catalog | pg_conversion | table | postgres
  84. pg_catalog | pg_database | table | postgres
  85. pg_catalog | pg_db_role_setting | table | postgres
  86. pg_catalog | pg_default_acl | table | postgres
  87. pg_catalog | pg_depend | table | postgres
  88. pg_catalog | pg_description | table | postgres
  89. pg_catalog | pg_enum | table | postgres
  90. pg_catalog | pg_event_trigger | table | postgres
  91. pg_catalog | pg_extension | table | postgres
  92. pg_catalog | pg_foreign_data_wrapper | table | postgres
  93. pg_catalog | pg_foreign_server | table | postgres
  94. pg_catalog | pg_foreign_table | table | postgres
  95. pg_catalog | pg_index | table | postgres
  96. pg_catalog | pg_inherits | table | postgres
  97. pg_catalog | pg_language | table | postgres
  98. pg_catalog | pg_largeobject | table | postgres
  99. pg_catalog | pg_largeobject_metadata | table | postgres
  100. pg_catalog | pg_namespace | table | postgres
  101. pg_catalog | pg_opclass | table | postgres
  102. pg_catalog | pg_operator | table | postgres
  103. pg_catalog | pg_pltemplate | table | postgres
  104. pg_catalog | pg_policy | table | postgres
  105. pg_catalog | pg_proc | table | postgres
  106. pg_catalog | pg_range | table | postgres
  107. pg_catalog | pg_replication_origin | table | postgres
  108. pg_catalog | pg_rewrite | table | postgres
  109. pg_catalog | pg_seclabel | table | postgres
  110. pg_catalog | pg_shdepend | table | postgres
  111. pg_catalog | pg_shdescription | table | postgres
  112. pg_catalog | pg_shseclabel | table | postgres
  113. pg_catalog | pg_statistic | table | postgres
  114. pg_catalog | pg_tablespace | table | postgres
  115. pg_catalog | pg_transform | table | postgres
  116. pg_catalog | pg_trigger | table | postgres
  117. pg_catalog | pg_ts_config | table | postgres
  118. pg_catalog | pg_ts_config_map | table | postgres
  119. pg_catalog | pg_ts_dict | table | postgres
  120. pg_catalog | pg_ts_parser | table | postgres
  121. pg_catalog | pg_ts_template | table | postgres
  122. pg_catalog | pg_type | table | postgres
  123. pg_catalog | pg_user_mapping | table | postgres
  124. public | c3po_alive | table | odk_user
  125. (89 rows)
  126.  
  127. ## I'm not sure where to go from here..
  128.  
  129. odk-mm=# SELECT * from 01_RESCUED_PEOPLE_DATA_FORM_0_1_CORE;
  130. ERROR: syntax error at or near "01"
  131. LINE 1: SELECT * from 01_RESCUED_PEOPLE_DATA_FORM_0_1_CORE;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement