python3.x pit mysql database connection

1. mysqlclient 1.3 version does not 

Solution: Comment out the D: \ Users \ xxx \ AppData \ Local \ Programs \ Python \ Python37 \ Lib \ site-packages \ django \ db \ backends \ mysql \ base.py 35 and 36 of this two lines to

question 2. character set: given as follows: File "C: \ Users \ Administrator \ PycharmProjects \ xxx \ venv \ lib \ site-packages \ django \ db \ backends \ mysql \ operations.py", line 146 , in last_executed_query query = query.decode (errors = 'replace') AttributeError: 'str' object has no attribute 'decode'

solution: Comment out the D: \ Users \ xxx \ AppData \ Local \ Programs \ Python \ Python37 \ Lib \ site-packages \ django \ db \ backends \ mysql \ operations.py two lines 145 and 146 can be

both an error in the database migration to mysql from sqlite3 Times.

Guess you like

Origin www.cnblogs.com/ryan255/p/11420235.html