how to view existing databases in mysql server code example Example: mysql command line see all databases SHOW DATABASES;