MariaDB Connector/Python FAQ
MariaDB Connector/Python FAQ
Installation
Error: “Python.h: No such file or directory”
sudo apk add python3-devsudo apt-get install python3-devsudo yum install python3-develsudo dnf install python3-develbrew install mariadb-connector-cModuleNotFoundError: 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’
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?

