admin管理员组文章数量:1122796
I am using Mysql server: 10.5.19-MariaDB-0+deb11u2 installed mysql-connector-python, tried many versions from 8.1 to 9+
When my python code reaches the line mysql.connector.connect()
the below exception happens:
I have tried to alter the mysql user to chaching-sha2-password by could not do that, some documents say that my db server does not support it.
Requested Module was not found: No module nam ed 'mysql.connector.plugins.mysql_native_password'
Process Process-5:
Traceback (most recent call last):
File "multiprocessing/process.py", line 315, in _bootstrap
File "multiprocessing/process.py", line 108, in run
File "SQL_MY.py", line 326, in sql_process_launcer
my_sql_proc_object=sql_process(process_communicator)
File "SQL_MY.py", line 338, in __init__
self.db_con=connect_to_db()
File "SQL_MY.py", line 13, in connect_to_db
mydb = mysql.connector.connect(
File "mysql/connector/pooling.py", line 294, in connect
File "mysql/connector/connection.py", line 172, in __init__
File "mysql/connector/connection.py", line 636, in close
File "mysql/connector/connection.py", line 1155, in cmd_quit
File "mysql/connector/network.py", line 604, in send
File "mysql/connector/network.py", line 221, in send
File "mysql/connector/network.py", line 167, in _send_pkt
File "mysql/connector/errors.py", line 54, in __init__
File "mysql/connector/locales/__init__.py", line 62, in get_client_error
ImportError: No localization support for language 'eng'
版权声明:本文标题:mysql-connector-python error No module named 'mysql.connector.plugins.mysql_native_password' - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736306872a1933116.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论