[pyar] Debian: Conectarse al servidor Mysql

Gerardo Rios gsr.5392.tec en gmail.com
Lun Jun 12 00:00:33 ART 2017


Hola, buenas:

Queria interpretar un archivo python que se conecta a un servidor local
Mysql y me tira el siguiente error:

Traceback (most recent call last):
  File "compresionloteimagenes-ft-jpg.py", line 376, in <module>
    main()
  File "compresionloteimagenes-ft-jpg.py", line 254, in main
    bd_lote_imagenes = mysql.connector.connect(user=' ', password=' ',
host='localhost', database='lote_imagenes')
  File "/usr/lib/python2.7/dist-packages/mysql/connector/__init__.py", line
155, in connect
    return MySQLConnection(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mysql/connector/connection.py",
line 123, in __init__
    self.connect(**kwargs)
  File "/usr/lib/python2.7/dist-packages/mysql/connector/connection.py",
line 430, in connect
    self._open_connection()
  File "/usr/lib/python2.7/dist-packages/mysql/connector/connection.py",
line 394, in _open_connection
    self._do_handshake()
  File "/usr/lib/python2.7/dist-packages/mysql/connector/connection.py",
line 135, in _do_handshake
    packet = self._socket.recv()
  File "/usr/lib/python2.7/dist-packages/mysql/connector/network.py", line
206, in recv_plain
    raise errors.InterfaceError(errno=2013)
mysql.connector.errors.InterfaceError: 2013: Lost connection to MySQL
server during query


Si alguien tiene una idea de como solucionarlo.

Saludos
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20170612/3ce3abf0/attachment.html>


Más información sobre la lista de distribución pyar