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