Symptoms
MySQL/MariaDB database import fails with the error:
Unable to import the <db_name> dump:
Unable to restore database 'db_name'
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR: ASCII '' appeared in the statement, but this is not allowed unless option --binary-mode is enabled and mysql is run in non-interactive mode. Set --binary-mode to 1 if ASCII '' is expected. Query: 'TAPE'.
(Error code 22)
Cause
MSSQL dump restores into MySQL/MariaDB database.
Resolution
-
Go to Domains > example.com > Databases.
-
Create an empty MSSQL database by clicking Add Database. Select an MSSQL database server during creation.
-
Click Import Dump button and select the database dump file.