I am using Django 2.0.4, MySQL 8.0.11, mysqlclient-1.3.12 and Python 3.6.5 on Mac Sierra. I am receiving the following warning:
/lib/python3.6/site-packages/django/db/backends/mysql/base.py:71: Warning: (3719, "'utf8' is currently an alias for the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.")
I know it's just a warning, but I still don't like seeing it and have been searching for a solution to it. I have tried a number of things including dropping and recreating my Schema with a variety of options from UTF8 Collation UTF8-bin and UTF8MB4 Collation UTF8MB4-bin but nothing seems to work. This warning is coming from MySQL/base.py but I don't know who is making the call with 'utf8' that MySQL is objecting to.
Anyone have any ideas?
ADDITIONAL INFO
I got to thinking about this some more after the answer below and realized that I have so far only received this warning during the migrate command during what appears to be the initial setup of the auth app. I looked at all the sql with the sqlmigrate command and didn't see any mention of utf8 so I still don't know why it is happening
(CL) Mac-mini:mysite Lehrian$ python manage.py migrate Operations to perform: Apply all migrations: admin, auth, contenttypes, polls, sessions Running migrations: Applying contenttypes.0001_initial... OK Applying auth.0001_initial... OK Applying admin.0001_initial... OK Applying admin.0002_logentry_remove_auto_add... OK Applying contenttypes.0002_remove_content_type_name... OK Applying auth.0002_alter_permission_name_max_length... OK Applying auth.0003_alter_user_email_max_length... OK Applying auth.0004_alter_user_username_opts... OK Applying auth.0005_alter_user_last_login_null... OK Applying auth.0006_require_contenttypes_0002... OK Applying auth.0007_alter_validators_add_error_messages... OK /Users/Lehrian/Documents/Davelopment/CL/lib/python3.6/site-packages/django/db/backends/mysql/base.py:71: Warning: (3719, "'utf8' is currently an alias for the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.") return self.cursor.execute(query, args) Applying auth.0008_alter_user_username_max_length... OK Applying auth.0009_alter_user_last_name_max_length... OK Applying polls.0001_initial... OK Applying polls.0002_auto_20180425_1458... OK Applying sessions.0001_initial... OK (CL) Mac-mini:mysite Lehrian$
I also get it when running tests but I have concluded this is the same error as above as tests creates it's own database (also with character set utf8mb4, I preserved the test_polls database and looked at it) and it runs the same migration as above.