MariaDB Connector/Python FAQ
MariaDB Connector/Python FAQ
API Reference
Installation
Error: “Python.h: No such file or directory”
sudo apk add python3-devsudo apt-get install python3-devsudo yum install python3-develWhich installation option should I choose for version 2.0?
Do I need MariaDB Connector/C for version 2.0?
ModuleNotFoundError: No module named ‘packaging’
MariaDB Connector/Python requires MariaDB Connector/C >= 3.3.1, found version 3.1.2
OSError: mariadb_config not found
Error: struct st_mariadb_methods’ has no member named ‘db_execute_generate_request’
Q: My distribution doesn’t provide a recent version of MariaDB Connector/C
Q: Does MariaDB Connector/Python provide pre-releases or snapshot builds which contain recent bug fixes?
Q: How can I build an actual version from github sources?
Connecting
mariadb.OperationalError: Can’t connect to local server through socket ‘/tmp/mysql.sock’
How do I migrate from version 1.1 to 2.0?
What happened to auto_reconnect?
How do I use async/await with version 2.0?
What's the difference between prepared and binary?
Should I use text or binary protocol?
Q: Which authentication methods are supported by MariaDB Connector/Python?
General
Q: How do I execute multiple statements with cursor.execute()?
Q: Does MariaDB Connector/Python work with Python 2.x?
Q: How can I see a transformed statement? Is there a mogrify() method available?
Q: Does MariaDB Connector/Python support paramstyle “pyformat”?
Transactions
Q: Previously inserted records disappeared after my program finished
Last updated
Was this helpful?

