Show
Ignore:
Timestamp:
04/23/03 16:20:22 (22 years ago)
Author:
jalet
Message:

The upgrade script now uses TCP/IP for the connection on localhost to PostgreSQL.
Please modify the script to access to a remote PostgreSQL server during the upgrade.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/initscripts/upgrade-from-before-1.03.py

    r942 r951  
    5757    """Returns the database object or None if we can't connect to it.""" 
    5858    try : 
    59         pykotadb = pg.connect(dbname, user="postgres") 
     59        pykotadb = pg.connect(host="localhost", port=5432, dbname=dbname, user="postgres") 
    6060    except pg.error, msg :      
    6161        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]) 
    6263        return  
    6364    else :