DEV Community

Cover image for List MySQL Databases: How to Use the SHOW DATABASES Command
Jamey Barton
Jamey Barton

Posted on

List MySQL Databases: How to Use the SHOW DATABASES Command

Getting a list of MySQL databases that reside on a server may come in handy for various reasons. For example, developers will use it to explore the current environment, and DBAs will need it to carry out routine server maintenance.

In this article, you will get a comprehensive guide on how to show databases in MySQL and filter them according to certain criteria. Read on to find out about the following:

  • The syntax of SHOW DATABASES in MySQL
  • The SHOW SCHEMAS command to view MySQL databases
  • Permissions required to list all databases in MySQL
  • How to filter the database list
  • How to list all databases in MySQL from the command line
  • How to view databases with a MySQL GUI tool

Learn all about how to see the list of databases in MySQL and choose the most effortless way – using AI-powered dbForge Studio for MySQL. It encompasses dozens of useful features that let you perform database-related tasks: create a MySQL database, back up a MySQL database, manage MySQL databases, and much more.

Top comments (0)