Kaustav Mukhopadhyay
08/22/2024, 3:32 AMmeltano --log-level=debug run tap-postgres target-mysql
. The pipeline fails, and essentially I get this error:
sqlalchemy.exc.OperationalError: (MySQLdb.OperationalError) (1044, "Access denied for user 'root'@'%' to database 'information_schema'")
Any suggestions?visch
08/22/2024, 12:22 PMroot
doesn't have access to information_schema
?Kaustav Mukhopadhyay
08/22/2024, 1:02 PMinformation-schema
is a MySQL system table, and every user should supposedly have read only access. From what I could research, you cannot "grant" privileges to a user for this table.Kaustav Mukhopadhyay
08/22/2024, 1:03 PMvisch
08/22/2024, 1:19 PMKaustav Mukhopadhyay
08/22/2024, 2:13 PMKaustav Mukhopadhyay
08/22/2024, 2:34 PMmysql:
image: bitnami/mysql
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: root # Password for the MySQL root user
MYSQL_DATABASE: acko0 # Default database to create
MYSQL_USER: root # Default user to create
MYSQL_PASSWORD: root # Password for the default user
ports:
- '3306:3306'
volumes:
- mysql_data:/var/lib/mysql
- ./init/sql/mysql:/docker-entrypoint-initdb.d
networks:
- acko-network
and the meltano.yml
version: 1
default_environment: dev
project_id: df9096f2-1b1c-43a2-8a70-ddeafcc4c69e
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-mysql
config:
host: $MYSQL_HOST
port: $MYSQL_PORT
user: $MYSQL_USER
password: $MYSQL_PASSWORD
database: $MYSQL_DATABASE
variant: transferwise
pip_url: pipelinewise-tap-mysql
- name: tap-postgres
config:
host: $PG_HOST
port: $PG_PORT
user: $PG_USER
password: $PG_PASSWORD
database: $PG_DATABASE
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-postgres.git>
- name: tap-csv
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-csv.git>
loaders:
- name: target-mysql
config:
host: $MYSQL_HOST
port: $MYSQL_PORT
user: $MYSQL_USER
password: $MYSQL_PASSWORD
database: $MYSQL_DATABASE
variant: thkwag
pip_url: thk-target-mysql
- name: target-postgres
config:
host: $PG_HOST
port: $PG_PORT
user: $PG_USER
password: $PG_PASSWORD
database: $PG_DATABASE
variant: meltanolabs
pip_url: meltanolabs-target-postgres
- name: target-csv
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/target-csv.git>
visch
08/22/2024, 2:36 PMvisch
08/22/2024, 2:37 PMEdgar Ramírez (Arch.dev)
08/22/2024, 3:03 PMKaustav Mukhopadhyay
08/22/2024, 3:03 PMmeltano run tap-postgres target-mysql
, the error comes during the target part.Kaustav Mukhopadhyay
08/22/2024, 3:04 PMKaustav Mukhopadhyay
08/22/2024, 3:05 PMvisch
08/22/2024, 3:19 PMKaustav Mukhopadhyay
08/22/2024, 3:35 PMKaustav Mukhopadhyay
08/22/2024, 4:00 PMEdgar Ramírez (Arch.dev)
08/22/2024, 7:31 PMCREATE TABLE information_schema.pg_foreign_data_wrappers_
Edgar Ramírez (Arch.dev)
08/22/2024, 7:32 PMinformation_schema-pg_foreign_data_wrappers
stream 🤦♂️Edgar Ramírez (Arch.dev)
08/22/2024, 7:33 PMinformation_schema.*
streams in your tap-postgres config?Kaustav Mukhopadhyay
08/23/2024, 2:59 AMKaustav Mukhopadhyay
08/23/2024, 3:00 AM- name: tap-postgres
config:
host: $PG_HOST
port: $PG_PORT
user: $PG_USER
password: $PG_PASSWORD
database: $PG_DATABASE
filter_schemas:
- '!<table-to-exclue>'
visch
08/23/2024, 12:59 PM