Changeset 2874

Show
Ignore:
Timestamp:
05/03/06 11:44:41 (19 years ago)
Author:
jerome
Message:

Explicitely sets the default TCP ports to use, because it seems that once again, MySQL fails to be smart...

Location:
pykota/trunk/pykota/storages
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/mysqlstorage.py

    r2863 r2874  
    4444            port = int(port) 
    4545        except ValueError :     
    46             port = -1           # Use the default MySQL port 
     46            port = 3306           # Use the default MySQL port 
    4747         
    4848        self.tool.logdebug("Trying to open database (host=%s, port=%s, dbname=%s, user=%s)..." % (host, port, dbname, user)) 
  • pykota/trunk/pykota/storages/pgstorage.py

    r2830 r2874  
    4949            port = int(port) 
    5050        except ValueError :     
    51             port = -1         # Use PostgreSQL's default tcp/ip port (5432). 
     51            port = 5432         # Use PostgreSQL's default tcp/ip port (5432). 
    5252         
    5353        self.tool.logdebug("Trying to open database (host=%s, port=%s, dbname=%s, user=%s)..." % (host, port, dbname, user))