Report this

What is the reason for this report?

Error when importing to managed database

Posted on June 16, 2021

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.