← All Adapters
MYSQL
type: mysqlThe world's most popular open-source database. Widely used for operational/transactional workloads and web applications.
PREREQUISITES
Driver: mysqlclient — installed automatically by:
dvt sync
CONFIGURATION FIELDS
| FIELD | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|---|---|---|---|---|
| type | string | yes | — | Must be `mysql` |
| host | string | yes | localhost | Database server hostname |
| port | integer | no | 3306 | Database server port |
| user | string | yes | — | Database username |
| password | string | yes | — | Database password |
| schema | string | yes | — | Database/schema name |
| threads | integer | no | 4 | Number of parallel threads |
PROFILES.YML EXAMPLE
my_project:
target: mysql_dev
outputs:
mysql_dev:
type: mysql
host: localhost
port: 3306
user: analyst
password: "{{ env_var('MYSQL_PASSWORD') }}"
schema: operationsSOURCES.YML EXAMPLE
sources:
- name: crm
connection: mysql_dev
schema: crm_db
tables:
- name: customers
- name: orders
- name: productsINCREMENTAL STRATEGIES
✓ Append✓ Delete+Insert✓ Merge