url = (
    'jdbc:mysql://%s/%s?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull'
     % (host, db))
connections = zxJDBC.connect(url, user, passwd, 'com.mysql.jdbc.Driver')
Migrating from CPython to Jython