I have built an SQL database locally using ampps which uses MySQL 8.0.31. I then exported it using PHPMyAdmin and tried to import it into my PythonAnywhere database using:
use database$database; source database.sql;
but I keep getting errors such as the below whilst importing.
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 '(_utf8mb4'')
)' at line 8
ERROR 1146 (42S02): Table 'database$database.wagtailsearch_indexentry' doesn't exist
ERROR 1215 (HY000): Cannot add foreign key constraint
I checked the MySQL version on PythonAnywhere and it's:
mysql Ver 8.0.29-0ubuntu0.20.04.3 for Linux on x86_64 ((Ubuntu)