First of all, this is not a MySQL error - this is a MySQL Workbench error (you can see it in the Oracle source code here ).
Secondly, you will get this error if the database is not selected. You can choose one of two ways.
See how it looks when no databases are selected:

as you can see it is not bold. This can be easily fixed by double-clicking on the database name or by right-clicking and selecting "Set as default schema":


If you still do not see any database selected on the left side, you can force it using the SQL USE as follows: USE `dbname`; (where dbname is the name of your database):

source share