Skip to content Skip to sidebar Skip to footer

Lost Connection To MySQL Server During Query - Python 3.x - Pymysql

I'm trying to connect to a server to fetch details from one of the databases using pymysql library in python. But I keep getting this same error and I've no clue on why. I'm pretty

Solution 1:

You may want to try using pymssql instead of pymysql.

I had the same errors but the reason in my case was that my Database was not a MySQL but a Microsoft SQL database. Using the adequate library (pymssql) then solved the problem.


Post a Comment for "Lost Connection To MySQL Server During Query - Python 3.x - Pymysql"