Changeset 951 for pykota/trunk/initscripts/upgrade-from-before-1.03.py
- Timestamp:
- 04/23/03 16:20:22 (22 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/initscripts/upgrade-from-before-1.03.py
r942 r951 57 57 """Returns the database object or None if we can't connect to it.""" 58 58 try : 59 pykotadb = pg.connect( dbname, user="postgres")59 pykotadb = pg.connect(host="localhost", port=5432, dbname=dbname, user="postgres") 60 60 except pg.error, msg : 61 61 sys.stderr.write("%s\n" % msg) 62 sys.stderr.write("Unable to connect to the local PostgreSQL server.\nPlease modify the open_database() method in %s\nto connect to the correct PostgreSQL server\nand relaunch the script.\n" % sys.argv[0]) 62 63 return 63 64 else :