Python Forum
Psycopg2 import files from another map
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Psycopg2 import files from another map
#2
Hello,
NAME, USER and PASSWORD are default parameters for dbname, user and passoword arguments respectively. Your call to psycopg2.connect must include your particular information, something like:
connection = psycopg2.connect("dbname=my_database user=BluezamX password=top_secret")
You may also need to provide an IP (most likely localhost). And of course, that particular database and user must exist, and Postgres must be running. More info is available on docs page:
http://initd.org/psycopg/docs/module.htm...g2.connect
Reply


Messages In This Thread
RE: Psycopg2 import files from another map - by j.crater - Jan-18-2017, 11:41 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020