postgresql

链接

默认用户是postgres 密码是安装时候设置的,待补充()增加及删除用户

import psycopg2
conn = psycopg2.connect(database="test_db", user="postgres", password="tuji2013", host="127.0.0.1", port="5432")

print ("Opened database successfully")
posted @ 2017-10-15 23:42  icanactnow  阅读(131)  评论(0编辑  收藏  举报