Connecting Python to MySQL without using a connector

80 views Asked by At

I have a weird case on my hands. I have a machine that is completely locked. Its a Debian 9 machine and I need to run a Python script that needs to connect to MySQL. The problem is I cant install anything with apt, Python is 3.5.3 and cant be updated and the machine does not have PIP at all. I immediately went to docker but it turns out installing it is out of the question as well.

My question is can I connect to the MySQL DB without using a connector like pymysql? I usually use pymysql/psycopg2 and sqlalchemy for working with database but i cant install any of them in this case.

Any help would be greatly appreciated.

0

There are 0 answers