Yes, I was logged in with the cpanel user.
The tables themselves could be imported, but there are also some stored procedures, functions and triggers I want to import, and the problem is with the triggers. For example, when a row gets inserted into a table, I want a procedure to run automatically, that's what I need the triggers for. I tried to import a table with a trigger: the table was created and all the rows were imported but the trigger couldn't be created, I saw the error message instead.