create account

RE: Steps to restore a Hivemind database snapshot by tosch

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @emrebeyler/re-tosch-re-emrebeyler-re-tosch-re-emrebeyler-steps-to-restore-a-hivemind-database-snapshot-20190123t134542215z

· @tosch ·
So far so good, a couple of minor things. 

It seems I had PostgreSQL 9.5 on my system. Then installing with your instructions worked fine. And all the continuing step also.

Only thing that did not really work was your import command. Due to the password missing. Setting <a href="https://gist.github.com/AtulKsol/4470d377b448e56468baef85af7fd614">md5</a> as method requires the password input.
Therefore I used  a query like this to import, as you can read in the cited source:

```
psql --host=localhost --dbname=hive --username=hive -f hive_latest.sql
```
properties (22)
authortosch
permlinkre-emrebeyler-re-tosch-re-emrebeyler-re-tosch-re-emrebeyler-steps-to-restore-a-hivemind-database-snapshot-20190123t140045378z
categoryhivemind
json_metadata{"tags":["hivemind"],"links":["https://gist.github.com/AtulKsol/4470d377b448e56468baef85af7fd614"],"app":"steemit/0.1"}
created2019-01-23 14:00:45
last_update2019-01-23 14:00:45
depth5
children5
last_payout2019-01-30 14:00:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length559
author_reputation3,148,075,991,236
root_title"Steps to restore a Hivemind database snapshot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,815,276
net_rshares0
@emrebeyler · (edited)
it the import  (psql..) prints errors while importing the database, what you have is/will be a corrupted database. Somebody tried with 10.5 and failed.
properties (22)
authoremrebeyler
permlinkre-tosch-re-emrebeyler-re-tosch-re-emrebeyler-re-tosch-re-emrebeyler-steps-to-restore-a-hivemind-database-snapshot-20190123t140312865z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2019-01-23 14:03:12
last_update2019-01-23 14:06:57
depth6
children4
last_payout2019-01-30 14:03:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length151
author_reputation448,535,049,068,622
root_title"Steps to restore a Hivemind database snapshot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,815,421
net_rshares0
@tosch ·
That is also something I noticed. I dumped my previously synced database before importing.
properties (22)
authortosch
permlinkre-emrebeyler-re-tosch-re-emrebeyler-re-tosch-re-emrebeyler-re-tosch-re-emrebeyler-steps-to-restore-a-hivemind-database-snapshot-20190123t140414466z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2019-01-23 14:04:15
last_update2019-01-23 14:04:15
depth7
children3
last_payout2019-01-30 14:04:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length90
author_reputation3,148,075,991,236
root_title"Steps to restore a Hivemind database snapshot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,815,482
net_rshares0
@emrebeyler ·
Yeah, you need postgresql 10.6 :)
properties (22)
authoremrebeyler
permlinkre-tosch-re-emrebeyler-re-tosch-re-emrebeyler-re-tosch-re-emrebeyler-re-tosch-re-emrebeyler-steps-to-restore-a-hivemind-database-snapshot-20190123t140503287z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2019-01-23 14:05:03
last_update2019-01-23 14:05:03
depth8
children2
last_payout2019-01-30 14:05:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length33
author_reputation448,535,049,068,622
root_title"Steps to restore a Hivemind database snapshot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,815,524
net_rshares0