Question

Error when importing to managed database

Posted June 16, 2021 157 views
MySQLDigitalOcean Managed MySQL Database

When attempting to import data from an SQL file export following the mysql command line instructions for managed db, I receive ERROR 1102 (42000): Incorrect database name ' '

I copied the connection details using flags option from the dashboard and I’m connecting from one of the trusted sources. The name ’ ’ does not match the db I’m copying into or the source db/name in the sql file.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi there,

Can you share the exact command that you are running here? Make sure to hide any sensitive information like passwords and etc.

Also, it is possible that there is a special character in the password causing the problem. What I could suggest is wrapping the username, the password and the database name in single quotes to make sure that the special symbols do not cause the problem.

Regards,
Bobby