SQLAlchemy no password supplied error

后端 未结 4 558
情话喂你
情话喂你 2020-12-23 16:27

This is probably a silly error but I cannot seem to find a satisfying solution.

When running db.create_all(), I got the following error.



        
4条回答
  •  别那么骄傲
    2020-12-23 16:54

    URL pattern should be:

    postgresql://user:password@localhost:5432/database_name
    

    pip install psycopg2
    the user should be postgres or any other user you have created and intend to use

    similarly for mySql it would be:

    mysql://user:pass@localhost:3306/database_name
    

    pip install mysql-python

提交回复
热议问题