While using pymysql with python multithreading, generally we will face the questions: It can't share a connection created by main thread with all sub-threads. It will result in the following error: ...