query to list all databases in mysql server code example Example: mysql list databases SHOW DATABASES;