Django 2.0 only supports MySQL 5.5+.
I suspect you're getting a syntax error when Django tries to create a table
mapping
a model with a DateTimeField since it resolves to DATETIME(6) which is not
supported
on MySQL < 5.5.
Cheers,
Simon
Le mardi 3 septembre 2019 09:58:19 UTC-4, johnsi rani a écrit :
>
>
>
> i nstalled django2 and mysql 5.0
>> I am getting this error while i give python manage.py migrate
>>
>> raise MigrationSchemaMissing("Unable to create the django_migrations
>> table (%s)" % exc)
>> django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create
>> the django_migrations table ((1064, "You have an error in your SQL syntax;
>> check the manual that corresponds to your MySQL server version for the
>> right syntax to use near '(6) NOT NULL)' at line 1"))
>>
>>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/5f9b7518-952d-4639-a9b8-0304a11ffa91%40googlegroups.com.