list-databases command is used for listing all the database created inside the database. It prints all the database name on the console screen.
Example 👇
sqoop list-databases --connect jdbc:mysql://localhost/ --username root --password
The above given query will print all the database name on the console screen.