Hi, Oleg and folks!

Okey! Now I have 'manage' to get this error:

Traceback (most recent call last):
   File "/home/bashu/work/devel/wxExpress/gui/preferdlg.py", line 55, in 
OnOK
     self.GetDBServer())
   File "/home/bashu/work/devel/wxExpress/lib/database.py", line 16, in 
__init__
     TownTable.createTable(ifNotExists=True)
   File "/usr/lib/python2.4/site-packages/sqlobject/main.py", line 1330, 
in createTable
     if ifNotExists and conn.tableExists(cls.sqlmeta.table):
   File 
"/usr/lib/python2.4/site-packages/sqlobject/mysql/mysqlconnection.py", 
line 128, in tableExists
     self.query('DESCRIBE %s' % (tableName))
   File "/usr/lib/python2.4/site-packages/sqlobject/dbconnection.py", 
line 307, in query
     return self._runWithConnection(self._query, s)
   File "/usr/lib/python2.4/site-packages/sqlobject/dbconnection.py", 
line 219, in _runWithConnection
     conn = self.getConnection()
   File "/usr/lib/python2.4/site-packages/sqlobject/dbconnection.py", 
line 230, in getConnection
     conn = self.makeConnection()
   File 
"/usr/lib/python2.4/site-packages/sqlobject/mysql/mysqlconnection.py", 
line 53, in makeConnection
     raise self.module.OperationalError(
_mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL 
server on '123' (101)"); used connection string: host=123, port=0, 
db=db, user=user, pwd=password

Is the number '2003' is a mysql error code? How I can catch the above error?

-- 
Basil Shubin
Freelance Software Developer


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to