mysqk show tables cols code example Example 1: mysql show all tables show tables; Example 2: show table columns mysql command line SHOW COLUMNS from tablename;