This connector extracts technical metadata from a MySQL database using PyMySQL library.
You must run the connector using a user with SELECT
privilege to the databases
GRANT SELECT ON <databases> TO <user>
Create a YAML config file based on the following template.
If using user password authentication:
host: <databse_hostname>
user: <username>
password: <password>
database: <default_database_for_connections>
By default, the connector will connect using the default MySQL port 3306. You can change it using the following config:
port: <port_number>
See Filter Configurations for more information on the optional filter
config.
See Output Config for more information on the optional output
config.
Follow the Installation instructions to install metaphor-connectors
in your environment (or virtualenv). Make sure to include either all
or mysql
extra.
Run the following command to test the connector locally:
metaphor mysql <config_file>
Manually verify the output after the run finishes.