MySQL view all MySQL databases on MySQL server

Source: Internet
Author: User
Tags mysql command line mysql view


This article describes how to see what MySQL databases are on the current server when we log on to a MySQL server? The order is show databases.

How to log on to the MySQL server, and how to use the MySQL command line, we have in front of some articles have been introduced, welcome to see!

Now let's see, when we've logged on to the MySQL server, want to see what MySQL database is on the current MySQL server? And look at the order.

The order here is "show databases;"

The code is as follows Copy Code

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| Information_schema |
| MySQL |
| Performance_schema |
| Test |
+--------------------+
4 rows in Set (0.08 sec)

From the above input results, a total of four databases in the database, respectively, INFORMATION_SCHEMA, MySQL, Performance_schema, test.

With this important information, we can find a way to switch to the various databases to perform specific operations.
 
about using show databases to view all MySQL databases on the MySQL server, this article introduces so many, I hope to help you, thank you!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.