Python 3.2 script to connect to local MySQL database

前端 未结 3 1812
無奈伤痛
無奈伤痛 2021-01-21 17:24

I am running an Ubuntu Server. I would like for it to have a Python (v3.2) CGI script that would connect, and run a query, to the local MySQL database I have set up. Currently,

3条回答
  •  隐瞒了意图╮
    2021-01-21 18:07

    sqlalchemy supports MySQL and all versions of Python 3. It's nice because you don't have to write SQL; it makes tables look like classes and records look like objects.

提交回复
热议问题