[Phpmyadmin-devel] PMA_safe_db_list()

Marc Delisle Marc.Delisle at cegepsherbrooke.qc.ca
Thu Aug 3 19:01:03 CEST 2006

Sebastian Mendel a écrit :
> Sebastian Mendel schrieb:
>> Hi,
>> PMA_safe_db_list() first tries to use SHOW DATABASES if it fails it
>> tries mysql.db and inside this code there is a query with SHOW DATABASES
>> again ... why?
>> did i missed something there?
> and all this workaround if SHOW DATABASES is disabled does not work, at
> least as i tried it by just always returning empty array from
> PMA_DBI_get_dblist()
> tested with root having all rights and additional explicit to `mysql`
> and `phpmyadmin`
> any clues?
I confirm that for PMA 2.8.2 on MySQL 4.1.21 running with 
--skip-show-database, a user without the SHOW DATABASES privilege sees 
no databases.

I doesn't even execute PMA_safe_db_list() !


More information about the Developers mailing list