def __init__(self, host=None, port=None,<EOL>database=None, user=None, password=None, autoInit=True):
self._conn = None<EOL>self._connParams = {}<EOL>if host is not None:<EOL><INDENT>self._connParams['<STR_LIT:host>'] = host<EOL>if port is not None:<EOL><INDENT>self._connParams['<STR_LIT:port>'] = port<EOL><DEDENT>else:<EOL><INDENT>self._connParams['<STR_LIT:port>'] = defaultMySQLport<EOL><DEDENT><DEDENT>elif port is not None:<EOL><INDENT>self._connParams['<STR_LIT:host>'] = '<STR_LIT:127.0.0.1>'<EOL>self._connParams['<STR_LIT:port>'] = port<EOL><DEDENT>if database is not None:<EOL><INDENT>self._connParams['<STR_LIT>'] = database<EOL><DEDENT>if user is not None:<EOL><INDENT>self._connParams['<STR_LIT:user>'] = user<EOL>if password is not None:<EOL><INDENT>self._connParams['<STR_LIT>'] = password<EOL><DEDENT><DEDENT>if autoInit:<EOL><INDENT>self._connect()<EOL><DEDENT>
Initialize connection to MySQL Database.

        @param host:     MySQL Host
        @param port:     MySQL Port
        @param database: MySQL Database
        @param user:     MySQL User
        @param password: MySQL Password
        @param autoInit: If True connect to MySQL Database on instantiation.