Error while connecting to MySQL 2013: Lost connection to MySQL server during query when iam trying to connect to my remote mysql server

Iam trying to connect my python application to my remote mysql server but iam facing issues like Error while connecting to MySQL 2013: Lost connection to MySQL server during query.

I even tried to increase timeout but still iam getting same issue.

Could any one suggest me solution to connect to remote server

connection = mysql.connector.connect(host=’remote-server-ip’,user=’admin’,password=’server-password’,port=3306)

print(connection)

iam getting this error

mysql.connector.errors.InterfaceError: 2013: Lost connection to MySQL server during query

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.