- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 使用命令恢复postgres数据库报错psql: FATAL: role "root" does not exist 解决方案
因为是从其他地方备份出来的sql文件,如果直接用pgAdmin4因为格式问题报错input file appears to be a text format dump. Please use psql。所以换用命令行执行。但是出现psql: FATAL: role “root” does not exist问题。解决办法:直接进入postgres创建超级用户格式:create user 自...
2019-07-30 16:28:54 11732
原创 postgres如何使用sqlalchemy操作非public schemas下的表
在映射类中添加私有变量__table_args__ ,具体如下:table_args = ({“schema”: “表所在的schema名称”})eg:table_args = ({“schema”: “project”})
2019-07-19 09:52:26 1284
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人