list db in mysql code example Example 1: mysql list databases Click to copySHOW DATABASES; Example 2: how to see database in mysql command line Click to copyuse DBNAME;