I'm looking for a library to connect to MySQL with Python 3.6. All libraries I found did only work with older versions of Python. Sadly I can't change to an older Python version because i need some functions, which are introduced in Python 3.6.
I am programming on a raspberry pi3, but I don't think this should change anything.
Thanks for any help!
open attribute will tell you whether the connection has been explicitly closed or whether a remote close has been detected.
MySQLdb module, a popular interface with MySQL is not compatible with Python 3.
Practical Data Science using Python To disconnect Database connection, use close() method. If the connection to a database is closed by the user with the close() method, any outstanding transactions are rolled back by the DB.
mysqlclient
supports python3.6 officially.
https://pypi.python.org/pypi/mysqlclient
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With