Search code examples
pythonmysqlpython-3.xpipmysql-connector-python

What are the differences between mysql-connector-python, mysql-connector-python-rf and mysql-connector-repackaged?


I'd like to use the mysql-connector library for python 3. I could use pymysql instead, but mysql-connector already has a connection pool implementation, while pymysql doesn't seem to have one. So this would be less code for me to write.

However, when I do

$ pip3 search mysql-connector

I find that these 3 libraries are available:

mysql-connector-repackaged     - MySQL driver written in Python
mysql-connector-python-rf      - MySQL driver written in Python
mysql-connector-python         - MySQL driver written in Python

This is very confusing. Anybody knows which one I should use and why?

Thanks for your help.


Solution

  • I was just asking myself similar question and I think I found the "fresh" answer. Here is info from two weeks ago: https://github.com/pypa/warehouse/issues/5537

    It seems that currently a long-inactive person is owner of the mysql-connector name, hence MySQL developers release under name mysql-connector-python.