Error #1046 - No database selected
If you get this error:
Error #1046 - No database selected
you need to tell MySQL which database to use:
USE database_name;
or you might need to create a new database:
CREATE DATABASE database_name;
USE database_name;
before launching a command.