在4-2 查询MySQL数据那一课上按照老师的代码出现错误!找不到解决办法!
Traceback (most recent call last):
File "E:/Project/python/readMysql.py", line 20, in <module>
conut = cursor.execute(sql)
File "C:\Python35-32\lib\site-packages\pymysql\cursors.py", line 166, in execute
result = self._query(query)
File "C:\Python35-32\lib\site-packages\pymysql\cursors.py", line 323, in _query
self._do_get_result()
File "C:\Python35-32\lib\site-packages\pymysql\cursors.py", line 339, in _do_get_result
self._show_warnings()
File "C:\Python35-32\lib\site-packages\pymysql\cursors.py", line 347, in _show_warnings
ws = self._get_db().show_warnings()
File "C:\Python35-32\lib\site-packages\pymysql\connections.py", line 780, in show_warnings
result.read()
File "C:\Python35-32\lib\site-packages\pymysql\connections.py", line 1304, in read
first_packet = self.connection._read_packet()
File "C:\Python35-32\lib\site-packages\pymysql\connections.py", line 970, in _read_packet
(packet_number, self._next_seq_id))
pymysql.err.InternalError: Packet sequence number wrong - got 139 expected 1
请问如何解决?