mysql get all tables in database code example Example 1: mysql show all tables show tables; Example 2: mysql check all tables mysqlcheck -c mydatabasename -u root -p