PHP List databases – PHP May 28, 2011 Pramod T P Leave a comment <?php mysql_list_dbs(); Example : $connection=mysql_connect(“localhost”,”root”,”password”); $dataBases = mysql_list_dbs($connection); while ($db = mysql_fetch_object($dataBases)) { echo $db->Database . “<br />”; } ?>