Mysql malloc_error, set a breakpoint in malloc_error_break to debug

Hi guys:
I’m following the course of connecting to MySQL database in Django, when after I changed the database configurations in the settings.py, and ran ‘python manage.py migrate’, it will pop up an error like below, no migrations and tabels are created in the MySQL database. It will not happen when I changed back to sqlite, does anyone know how to fix this?
Thanks!