Bruceve1n opened a new issue, #31857:
URL: https://github.com/apache/doris/issues/31857

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   1.2.4.1 
   $ md5sum apache-doris-1.2.4.1-bin-aarch64.tar.xz
   888b211ad73a33c6a103e930c48f9135 *apache-doris-1.2.4.1-bin-aarch64.tar.xz
   
   
   ### What's Wrong?
   
   when I use mysql-connector-python 8.0.23 to 8.0.28 version, like 
py2.py3-none-any.whl package
   connect doris
   
   return 
   
   Traceback (most recent call last):
     File "test.py", line 9, in <module>
       cnx = mysql.connector.connect(**config)
     File "/usr/local/lib/python3.7/site-packages/mysql/connector/__init__.py", 
line 278, in connect
       return MySQLConnection(*args, **kwargs)
     File 
"/usr/local/lib/python3.7/site-packages/mysql/connector/connection.py", line 
108, in __init__
       self.connect(**kwargs)
     File 
"/usr/local/lib/python3.7/site-packages/mysql/connector/abstracts.py", line 
1003, in connect
       self._open_connection()
     File 
"/usr/local/lib/python3.7/site-packages/mysql/connector/connection.py", line 
355, in _open_connection
       self._ssl, self._conn_attrs)
     File 
"/usr/local/lib/python3.7/site-packages/mysql/connector/connection.py", line 
220, in _do_auth
       self._auth_switch_request(username, password)
     File 
"/usr/local/lib/python3.7/site-packages/mysql/connector/connection.py", line 
236, in _auth_switch_request
       packet = self._socket.recv()
     File "/usr/local/lib/python3.7/site-packages/mysql/connector/network.py", 
line 267, in recv_plain
       raise errors.InterfaceError(errno=2013)
   mysql.connector.errors.InterfaceError: 2013: Lost connection to MySQL server 
during query
   
   **but this script work fine on mysql 5.7**
   
   
   ### What You Expected?
   
   return 1
   
   ### How to Reproduce?
   
   ### this is my linux
   Linux version 4.19.90-24.4.v2101.ky10.aarch64 
([KYLINSOFT@localhost.localdomain](mailto:%20KYLINSOFT@localhost.localdomain)) 
(gcc version 7.3.0 (GCC)) #1 SMP Mon May 24 14:45:37 CST 2021
   
   ### this is my script
   import mysql.connector
   
   config = dict()
   config['user'] = 'root'
   config['password'] = 'password'
   config['host'] = 'ip'
   config['port'] = '9030'
   config['autocommit'] = True
   cnx = mysql.connector.connect(**config)
   cursor = cnx.cursor(dictionary=False, buffered=True)
   cursor.execute('select 1')
   result = cursor.fetchall()
   print(result)
   
   ### while doris work fine
   when I use mysql client login FE, show backends; 
   all BE are alive
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to