MySQL Commands

In this section, we are going to read about the mysql commands. Each statement is sent to the server for the execution by MySQL. MySQL provides lots of commands.

MySQL Commands

MySQL Commands

     

In this section, we are going to read about the mysql commands. Each statement is sent to the server for the execution by MySQL. MySQL provides lots of commands. To see list of mysql commands, you type help or \h on the mysql> prompt: A list of commands is displayed which can be used by the user according to the requirement.

Some General MySQL Commnads:

SHOW DATABASES: It displays lists of all MySQL databases on the system.

USE database_name: To Change database which have to be used. When you connect to the database first time, you will require to change the database. For this you need to run this query. Whenever you have to change the database, execute this query. 

For example:

SHOW TABLES: It displays all lists of tables from the current database.

Similarly, you can use all the MySQL Commands.