mysql 8ベースshow tables指定したデータベース内のすべてのテーブルを表示


  •        OS : Ubuntu 18.04.1 LTS
  •        DBMS : mysql 8.0.12
  •        blog : blog.csdn.net/shiwanwu
  •  typesetting : Markdown


  • データ、データ、命の根はデータにあります!データベースを操作するときは、慎重に注意してください.師万物のコードを見ればいいので、自分の判断が必要です.選択にぶつかったら,上下の質問を恥じないでください.

    example
    stu@Ubuntu:~$ mysql -u root -p
    Enter password: 
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 13
    Server version: 8.0.12 MySQL Community Server - GPL
    
    Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
    
    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective
    owners.
    
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
    mysql> show databases;
    +--------------------+
    | Database           |
    +--------------------+
    | information_schema |
    | mysql              |
    | performance_schema |
    | sys                |
    +--------------------+
    4 rows in set (0.00 sec)
    
    mysql> use mysql;
    Reading table information for completion of table and column names
    You can turn off this feature to get a quicker startup with -A
    
    Database changed
    mysql> show tables;
    +---------------------------+
    | Tables_in_mysql           |
    +---------------------------+
    | columns_priv              |
    | component                 |
    | db                        |
    | default_roles             |
    | engine_cost               |
    | func                      |
    | general_log               |
    | global_grants             |
    | gtid_executed             |
    | help_category             |
    | help_keyword              |
    | help_relation             |
    | help_topic                |
    | innodb_index_stats        |
    | innodb_table_stats        |
    | password_history          |
    | plugin                    |
    | procs_priv                |
    | proxies_priv              |
    | role_edges                |
    | 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                      |
    +---------------------------+
    33 rows in set (0.01 sec)
    
    mysql> exit
    Bye
    stu@Ubuntu:~$ 
    
    


    resource
  • [マニュアル]dev.mysql.com/doc
  • [ソース]downloads.mysql.com/archives/community
  • [Bug ] bugs.mysql.com
  • [テストデータ]github.com/datacharmer/test_db
  • [仕様-参照]yq.aliyun.com/articles/69327
  • [ランキング-参照]db-engines.com/en
  • [プラットフォーム]www.csdn.net


  • MySQLはリレーショナルデータベース管理システムであり、現在はオープンソース(2019-02)である.権限を明確にし、エンジンや文字セットなどを適切に選択し、命名を規範化する.MariaDB、Redis、MongoDB、PostgreSQL、Hive、HBAseなど、多くのことを理解し、心を広げます.Workbench,phpMyAdmin,Navicatなどのグラフィック管理ツールは,冬渉川のように緩和されている.