It would be very useful to be able to run phpminiadmin in an environment where the database user is not permitted to run SHOW DATABASES.
This could be done by running SHOW DATABASES in a try block. If it fails, then obtain the current database using "SELECT DATABASE()". Use the result in place of the set obtained from SHOW DATABASES.