search

Home  >  Q&A  >  body text

python连接mysql现在都用哪些库?

1.请教下大家现在生产连接mysql数据用的是什么类库,(MySQLdb-python貌似很久没维护了,sqlalchemy现在在用的多么?)

高洛峰高洛峰2887 days ago294

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 17:54:52

    You can check out the PyMySQL link

    reply
    0
  • PHPz

    PHPz2017-04-17 17:54:52

    1) The dependency of MySQLdb-python is a little more troublesome, but it is no problem for daily use. The code before the update instructions is stable and bug-free
    2) sqlalchemy is just an ORM middle layer, and its main purpose is to solve the problem between different SQL databases Syntax differences, the bottom layer also requires specific drivers such as mssql (SQL Server), see http://docs.sqlalchemy.org/en/rel_1_0/dialects/mysql.html, which lists the supported Mysql driver types

    reply
    0
  • Cancelreply