在站点的__init__.py文件中添加
提交到服务器然后python3 manage.py makemigrations 然后python3 manage.py migrate成功.
这样Django站点就成功使用MySQL作为数据库了.