how to view tables in a database mysql code example Example 1: mysql show all tables show tables; Example 2: mysql command show tables mysql -u user -p