简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM