Queries Are Not Executing

The execution of every query produces the response:
Error 1046: No DB selected.
How do I correct this?

You can Execute “USE database_name” to select the database you want to query.
Or if you’re on mysql workbench you can double-click on the database you want to query to select it.