
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
How can we display a list of currently existing MySQL databases on the server?
The SHOW DATABASES command is used to display the list of currently existing MySQL databases.
mysql> Show Databases; +-----------------------------+ | Database | +-----------------------------+ | information_schema | | gaurav | | mysql | | performance_schema | | query | | query1 | | sys | | tutorials | +-----------------------------+ 8 rows in set (0.02 sec)
- Related Articles
- How can we check the default character sets of all the MySQL databases we have on the server?
- How can I get a list of databases and collections on a MongoDB server?
- How can we get the list of MySQL server-side help categories?
- How can we get a list of columns in an existing MySQL table?
- How can we create a MySQL view based on another existing view?
- Which MySQL query can be used with the help of which we can see the list of MySQL databases?
- What is the synonym statement of SHOW DATABASES with the help of which we can see the list of MySQL databases?
- How can we get the list of tables in a particular database from MySQL Server command line?
- How Can Hackers Destroy Cloud Server Databases?
- How to GRANT SELECT ON all tables in all databases on a server with MySQL?
- How can we modify an existing MySQL event?
- How can we RENAME an existing MySQL event?
- How can we list all the columns of a MySQL view as we can list the columns of a MySQL table?
- How can we set PRIMARY KEY on multiple columns of an existing MySQL table?
- How can we get “MySQL server-side help”?

Advertisements