I'm running some test code with a MySQL database using SQLAlchemy. I'm unable to connect to the server using the database URL 'mysql://poopoo:peepee@localhost:32913/test', as it refuses me authentication.
When I try to connect to the database using DBeaver, I get an error informing me that "Public key Retrieval is not allowed". This lead me to this post, suggesting I add ?allowPublicKeyRetrieval=true&useSSL=false to the end of the URL. I can confirm that this method works in DBeaver.
However, adding these to the URL, either in a string or with connect_args, a TypeError is raised, informing me that these are invalid keyword arguments for connect.
How do I add these options to my SQLAlchemy connection?
I'm using testcontainers to generate the MySQL test server, but I don't think that's relevant.
mysqlclientdriver, but as suggested by another user I switched topymysqland that inexplicable seemed to work.