mysql cli list dbs code example Example 1: how to see database in mysql command line SHOW DATABASES; Example 2: list database in ubuntu show databases;