how to view databases in mysql from command line code example Example: mysql list databases SHOW DATABASES;