Python 3.4.0 with MySQL database

Srdan Ristic

I have installed Python version 3.4.0 and I would like to do a project with MySQL database. I downloaded and tried installing MySQLdb, but it wasn't successful for this version of Python.

Any suggestions how could I fix this problem and install it properly?

Andrew Gorcester

MySQLdb does not support Python 3 but it is not the only MySQL driver for Python.

mysqlclient is essentially just a fork of MySQLdb with Python 3 support merged in (and a few other improvements).

PyMySQL is a pure python MySQL driver, which means it is slower, but it does not require a compiled C component or MySQL libraries and header files to be installed on client machines. It has Python 3 support.

Another option is simply to use another database system like PostgreSQL.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

MySQL Database saving 0 values

From Dev

python convert list [0, 1, 2, 3, 4, 5] to [0, 1, 2], [1,2,3], [2,3,4]

From Dev

Mock a MySQL database in Python

From Dev

Create a MySQL database in python

From Dev

Python save to mysql database

From Dev

Create MySQL database with python

From Dev

Python save to mysql database

From Dev

Populating months with values or '0' from mySQL database

From Dev

Populating months with values or '0' from mySQL database

From Dev

Create the sequence 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 with seq()

From Dev

Unknown Database Error python mysql

From Dev

python mysql database connection error

From Dev

Connect to MySQL database using python

From Dev

python mysql database connection error

From Dev

use existing MySQL Database in Laravel 4

From Dev

MySQL and JSP Database connectivity with Glassfish server 4

From Dev

Rails 4 save wrong utc in the mysql database

From Dev

MySQL and JSP Database connectivity with Glassfish server 4

From Dev

Retrieve Multiple images one by one from MySQL database using Python 3

From Dev

Python database sqlite3

From Dev

Get 3 data from mysql database

From Dev

Mysql Database - Need 3 equal columns

From Dev

Python 3 - Key Error 0

From Dev

Python 3 - Key Error 0

From Dev

Why 2 ^ 3 ^ 4 = 0 in Julia?

From Dev

mysqli query returns 0 results despite information in MySQL database

From Dev

Returning a value 0 from a database row in PHP/MySQL after a query

From Dev

MySQL Database is not saving the data I insert but 0's

From Dev

Echoed data from a MySQL database field is '1' but the value is actually '0'?

Related Related

HotTag

Archive