list databases in mysql command line client code example Example: mysql list databases SHOW DATABASES;