Mega Code Archive

 
Categories / MySQL Tutorial / MySQL Utilities
 

To see the structure or schema of a database

mysql> mysql> SHOW TABLES FROM mysql; +---------------------------+ | Tables_in_mysql           | +---------------------------+ | columns_priv              | | db                        | | func                      | | help_category             | | help_keyword              | | help_relation             | | help_topic                | | host                      | | proc                      | | procs_priv                | | tables_priv               | | time_zone                 | | time_zone_leap_second     | | time_zone_name            | | time_zone_transition      | | time_zone_transition_type | | user                      | +---------------------------+ 17 rows in set (0.00 sec) mysql> mysql> use test; Database changed mysql>