Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

support postgresql #137

Open
arankaren opened this issue Nov 5, 2020 · 5 comments
Open

support postgresql #137

arankaren opened this issue Nov 5, 2020 · 5 comments
Labels
efficiency Efficiency improvement good first issue Good for newcomers low-priority This issue has a low priority

Comments

@arankaren
Copy link

Is there support for postgresql?. I've only seen MariaDB in documentation

@FireMasterK
Copy link
Member

FireMasterK commented Nov 6, 2020

I actually tried to run yotter with postgres, and when I did so, I was getting some stackoverflow and timeout exceptions, I think this will require some work.

@pluja
Copy link
Member

pluja commented Nov 6, 2020

Yes, as @FireMasterK said this needs some work. I will not invest time on implementing this for now as we have other priorities. If you (or anyone) wants to do it, you can go ahead an make a PR!

@pluja pluja added good first issue Good for newcomers low-priority This issue has a low priority labels Nov 6, 2020
@FireMasterK FireMasterK added the efficiency Efficiency improvement label Nov 6, 2020
@arankaren
Copy link
Author

@pluja a developer named heckyel heckyel.i2p shared the command to make Yotter work with Posgresql.

Configuration for Postgres

  1. Login as postgres
    sudo su - postgres

  2. Create base
    createdb namebase

  3. Create User (place a password for our user)
    createuser -P username

  4. Inside the database
    psql -d namebase

  5. Give permissions to the created user
    GRANT ALL PRIVILEGES ON DATABASE namebase TO username;

  6. Exit
    \q

Configuration Yotter

Requirements

$ pip install psycopg2-binary

Edit .env file

DATABASE_URL=postgresql+psycopg2://username:password@localhost:5432/namebase

@pluja
Copy link
Member

pluja commented Nov 15, 2020

Awesome! I'll test it and add this to the self-hosting docs 💯

@arankaren have you already tested this?

@arankaren
Copy link
Author

Awesome! I'll test it and add this to the self-hosting docs 💯

@arankaren have you already tested this?

Yes, it works perfectly on my instance

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
efficiency Efficiency improvement good first issue Good for newcomers low-priority This issue has a low priority
Projects
None yet
Development

No branches or pull requests

3 participants