Python 3.4.0 with MySQL database

前端 未结 11 2519
孤城傲影
孤城傲影 2020-11-27 14:56

I have installed Python version 3.4.0 and I would like to do a project with MySQL database. I downloaded and tried installing MySQL

11条回答
  •  离开以前
    2020-11-27 15:22

    There is a Ubuntu solution available either through the Ubuntu Software Center or through the Synaptic Package Manager. This will connect Python version 3.4.0 to MySQL. Download "python3-mysql.connector" version 1.1.6-1.

    Note that the connection syntax does not use "MySQLdb". Instead read: Connecting to MySQL Using Connector/Python

提交回复
热议问题