- Setup UNIX socket in with stellar postgres db
sudo systemctl stop postgresql
- Update the file
sudo vi /etc/postgresql/9.5/main/pg_hba.conf
withlocal core stellar md5
- Update the db connection string in stellar-core.cfg with
DATABASE="postgresql://dbname=core host=/var/run/postgresql user=stellar password=stellar"
sudo systemctl start postgresql
- restart the stellar-core
- https://github.com/stellar/stellar-core/blob/master/docs/stellar-core_example.cfg#L38
- Make sure sqlite3 is installed in system
- Update the db connection in stellar-core.cfg :
DATABASE="sqlite3://stellar.db"
- Restart the stellar-core