[Phpmyadmin-devel] about getting the db list
Michal Čihař
michal at cihar.com
Mon Aug 7 12:35:23 CEST 2006
Hi code cleaner :-)
On Mon, 07 Aug 2006 11:39:45 +0200
Sebastian Mendel <lists at sebastianmendel.de> wrote:
> "Note: starting with phpMyAdmin 2.6.1, this section is only applicable
> if your MySQL server is older than 4.1.2, or is running with
> --skip-show-database."
>
> Why "is older than 4.1.2"?
I haven't found any reason in documentation and changes...
> thinks i want to change:
>
> - if SHOW DATABASE fails try INFORMATION_SCHEMA
> - merge PMA_safe_db_list(), PMA_availableDatabases(),
> PMA_DBI_get_dblist() into a single function
> - if the dblist is still empty check `mysql` and `INFORMATION_SCHEMA`
> with USE DATABASE and add them to the list
Looks okay for me ... I actually never understood why we have so many
functions for listing databases.
--
Michal Čihař | http://cihar.com | http://blog.cihar.com
More information about the Developers
mailing list