After calling mysql_select_db to grab a database, is there any way to later output the name of the database that is currently selected? This seems very basic bu
slightly off-topic (using the CLI instead of PHP), but still worth knowing:
You can set the prompt to display the default database by using any of the following