MYSQL is one of the popular Relational Database Management Systems out there. One of the basic commands that you start out with is to see the list of tables in a database. The command for achieving this is
show tables;
Sometimes when you enter that command in the MYSQL console, you might see a message that looks something like this
The Error message states that no database is selected. The command would only work if we first select the database that we want to work on.
The command for selecting a database is-
use database_name;
where database_name is the Name of the Database.
Once you select the database, then the next step would be to execute the show tables command which would then show you the list of tables that exist within the database.
As you can see the command now ran successfully. And it shows that I have two tables in the database-Harvest_Users and Table2.