thanks, i reinstall mysql-python, it's working now, very frustrating.
On Tuesday, November 17, 2015 at 9:27:03 PM UTC+8, Tom Evans wrote: > > On Tue, Nov 17, 2015 at 11:44 AM, Pengfei Xue <pen...@gmail.com > <javascript:>> wrote: > > yesterday, i upgraded my local mysql server to 5.7.9 (mysql Ver 14.14 > > Distrib 5.7.9, for osx10.11 (x86_64) using EditLine wrapper), and > > found i can not make my app run anymore, find this error, is there some > one > > else get this error before? > > > > MySQL-python==1.2.5 > > mysql-python (MySQLdb) uses a C extension that would be dynamicly > linked to the mysql client libraries from your older version of mysql. > Did you reinstall and recompile this after upgrading to a newer > version of the client libraries? > > Another alternative is that mysql server no longer supports the client > API that mysql-python is presenting. You can mostly connect to older > servers using newer client libraries, you can't always connect to > newer servers using older client libraries. There are alternative > mysql/python connectors available: > > https://docs.djangoproject.com/en/1.8/ref/databases/#mysql-db-api-drivers > > Cheers > > Tom > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/43300720-a7f5-4a3e-a8ba-deee4c92ec49%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.