terminal check db code example Example 1: list database in ubuntu show databases; Example 2: mysql command line see all databases SHOW DATABASES;