which command in sql to view all the database code example Example: mysql list databases SHOW DATABASES;