- Issue created by @markie
For some reason on one of my sites, every time I do a backup and try to import to DDEV, I receive an error that there is a syntax issue.
ERROR 1064 (42000) at line 2502: 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 '<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta' at line 1
Error: failed to import database 'db' for SITENAME: failed to import database: exit status 1
At first I thought it was a MariaDB v MySQL issue, but after trying that, I still got the errors. Then I opened the generated back up file and at the end of the file was attached this:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="0;url='https://SITENAME/admin/config/development/backup_migrate'" />
<title>Redirecting to https://SITENAME/admin/config/development/backup_migrate</title>
</head>
<body>
Redirecting to <a href="https://SITENAME/admin/config/development/backup_migrate">https://SITENAME/admin/config/development/backup_migrate</a>.
</body>
</html>
Once I deleted that, I was able to import the data. Even when I imported a compressed file, this was attached at the end. I am not sure if this is a code or configuration issue.
Active
5.0
Code