command to check the database in mysql code example Example: mysql command line see all databases SHOW DATABASES;