nancy_wong
04/25/2023, 6:07 PM.env
file, I have
MELTANO_DATABASE_URI='<mysql+pymysql://username:password@127.0.0.1/db=meltanobackend?host=localhost?port=3306>'
When I do a run, I get No module named 'pymysql'
.
I have tried pip install
as well as added a custom utility but still get the same error. Does anyone know how to set up a mysql backend?
utilities:
- name: pymysql
namespace: pymysql
pip_url: git+<https://github.com/PyMySQL/PyMySQL.git>
executable: pymysql
pat_nadolny
04/25/2023, 7:17 PMnancy_wong
04/25/2023, 8:19 PMpat_nadolny
04/25/2023, 8:50 PMpipx install meltano[mysqlclient]
. Its worth a try to see if it works for younancy_wong
04/26/2023, 12:07 PMmysqlclient
was not in the pyproject.toml
. I added it and was able to create an elt with a mysql backend. However, I am getting an error during table creation:
2023-04-25T22:53:55.953350Z [error ] (MySQLdb.OperationalError) (1071, 'Specified key was too long; max key length is 3072 bytes')
[SQL:
CREATE TABLE subscriptions (
id CHAR(32) NOT NULL,
recipient VARCHAR(255) NOT NULL,
event_type VARCHAR(255) NOT NULL,
source_type VARCHAR(255),
source_id VARCHAR(255),
created_at DATETIME,
PRIMARY KEY (id),
UNIQUE (recipient, event_type, source_type, source_id)
pat_nadolny
04/26/2023, 1:55 PMedgar_ramirez_mondragon
04/26/2023, 2:54 PMnancy_wong
04/26/2023, 3:49 PMuser
04/26/2023, 5:38 PMnancy_wong
04/26/2023, 5:40 PM