archit2u
archit2u

Reputation: 77

How to connect MySQL with python 3

everyone I am new to python and I want to connect MySQL database with python 3 script. I did some googling but couldn't find anything for python 3 although there are methods for earlier python releases. Could anyone suggest a method?

Upvotes: 4

Views: 2384

Answers (1)

Lennart Regebro
Lennart Regebro

Reputation: 172437

MySQL-Connector, oursql and PyMySQL all support Python 3. They are also all supported by SQLAlchemy, which also supports Python 3.

So most likely you's want to use SQLAlchemy + one of the above conectors.

Upvotes: 4

Related Questions