Access pybossa database through terminal

让人想犯罪 __ 提交于 2019-12-16 18:03:50

问题


the thing is tath i had pybossa installed with vagrant and juju, so when i've tried to access to posgresql prompt it says no postgresql installed which is not possible cause pybossa is already in production so taths the reason i cannot even try to do a import-export dump file from database directly so how can i do it, i know how to do it from a normal installation but instead in a vagrant with juju a can't get inside the postgresql cause it says it is not installed, can anyone help me the steps to reach the postgresql command prompt inside the vagrant or if it's somenting I'm not doing?


回答1:


PYBOSSA uses the SQLAlchemy SQL toolkit to access the DB.

The way in which, I think you installed it, because "the thing is tath i had pybossa installed with vagrant and juju, so when i've tried to access to posgresql prompt it says no postgresql installed which is not possible cause pybossa is already in production so taths the reason i cannot even try to do a import-export dump file from database directly so how can i do it, i know how to do it from a normal installation but instead in a vagrant with juju a can't get inside the postgresql cause it says it is not installed, can anyone help me the steps to reach the postgresql command prompt inside the vagrant or if it's somenting i'm not doing?" it is not exactly clear what you are asking.

  • manual process of pybossa "Installing PYBOSSA by hand"
  • This way is difficult

To answer your question, you have to make sure you edited the Database to whatever your sqlalchemy database username and host was.

'postgresql://username:userpassword@localhost/databasename

From Database username and password

Database username and password - PYBOSSA uses the SQLAlchemy SQL toolkit to access the DB.

  • In the settings file, you only need to modify the name of the user, password and database name so it fits your needs in the field SQLALCHEMY_DATABASE_URI_:

    'postgresql://username:userpassword@localhost/databasename'



来源:https://stackoverflow.com/questions/40873109/access-pybossa-database-through-terminal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!