MySQL¶
Installation¶
Connection URL¶
Connect to MySQL by passing a connection URL to the Database
constructor:
Connection Parameters¶
Alternatively, connect using the Database.from_mysql()
method with parameters:
PARAMETER | DESCRIPTION |
---|---|
host
|
Hostname. Default is 'localhost'.
TYPE:
|
user
|
Username.
TYPE:
|
password
|
Password.
TYPE:
|
port
|
Port. Default is 3306.
TYPE:
|
database
|
Database name.
TYPE:
|
autocommit
|
Autocommit mode. Default is True.
TYPE:
|
match_schema
|
Regex pattern to filter schemas. Mutually exclusive with match_tables.
TYPE:
|
match_tables
|
Regex pattern to filter tables. Mutually exclusive with match_schema.
TYPE:
|
**kwargs
|
Additional keyword arguments passed to MySQLdb.connect.
TYPE:
|