mysql5.7 base View all tables in a database

Source: Internet
Author: User

Town Yard text:
The Confucian School of the practical and practical, line Buddhism Purdue sentient beings, the monastic Kangsheng fidelity, understanding of the easy to change the image. To science and technology to shine a good law, the achievement of a conscience blog.
______________________________________________________________________________________________________

Operating System:ubuntukylin 16.04 LTS 64bit
Mysql:ver 14.14 Distrib 5.7.17, for Linux (x86_64) using Editline Wrapper

Login

[Email protected]:~$ mysql-u root-p
Enter Password:
Welcome to the MySQL Monitor. Commands End With;  or \g.your MySQL connection ID is 5Server version:5.7.17-0ubuntu0.16.04.1 (Ubuntu) Copyright (c), Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names trademarks of their respectiveowners. Type ' help ', ' or ' \h ' for help. Type ' \c ' to clear the current input statement.



Show all the databases:

mysql> show databases;
+--------------------+| Database |+--------------------+| Information_schema | | Myfirstdb | | MySQL | | Performance_schema | | phpMyAdmin | | SYS |+--------------------+6 rows in Set (0.07 sec)


Enter the specified database:

mysql> use MySQL
Reading table information for completion of table and column namesyou can turn off this feature to get a quicker startup W Ith-adatabase changed


Show all tables in the current database:

Mysql> Show tables;
+---------------------------+| tables_in_mysql            |+---------------------------+| columns_priv               | |  db                         | |  engine_cost               | |  event                      | |  func                       | |  general_log               | |  gtid_executed             | | help_category             | |  help_keyword              | |  help_relation             | |  help_topic                 | |  innodb_index_stats        | |  innodb_table_stats        | |  ndb_binlog_index          | |  plugin                     | |  proc                       | |  procs_priv                | |  proxies_priv              | |  server_cost               | |  servers                    | |  slave_master_info         | |  slave_relay_log_info      | |  slave_worker_info         | |  slow_log                   | |  tables_priv               | |  time_zone                  | |  time_zone_leap_second      | |  time_zone_name            | |  time_zone_transition      | |  time_zone_transition_type | |  user                       |+---------------------------+31 rows in set  (0.00  SEC)


Exit:

Mysql> exit
Bye[email protected]:~$


______________________________________________________________________________________________________
If you think this blog post has a place to improve, please comment, I will think carefully.
Note: This blog post is only used for scientific research, if the infringement of your interests, please inform me, I will make the appropriate treatment.




This article is from the "calm mind like water, chi just like the pan." Blog, be sure to keep this source http://xinjingzhigang.blog.51cto.com/12262830/1904199

mysql5.7 base View all tables in a database

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.