MySQL Forums
Forum List  »  Connector/Python

Re: pooled connection trauma
Posted by: Nuno Mariz
Date: July 27, 2022 09:04AM

I'm not sure if I understand the question, but if you want to know what is the MySQL Connector/Python version you can get it as a string:

from mysql.connector import __version__
>>> print(__version__)

Or as a tuple:

from mysql.connector.version import VERSION
>>> print(VERSION)
(8, 0, 30, '', 1)
>>> print(VERSION[:3])
(8, 0, 31)

Options: ReplyQuote

Written By
Re: pooled connection trauma
July 27, 2022 09:04AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.