workaround information_schema problem when a db directory has wrong permissions or ownership
This commit is contained in:
@@ -8,10 +8,13 @@ $Source$
|
||||
2006-06-25 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* libraries/export/pdf.php, libraries/plugin_interface.lib.php, lang/*:
|
||||
bug #1504218: display an explanation for what is a PDF export
|
||||
* libraries/database_interface.lib.php: when a db directory has
|
||||
wrong permissions/ownership, information_shema does not work
|
||||
for all databases so we revert to SHOW TABLE STATUS
|
||||
|
||||
2006-06-23 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* libraries/Config.class.php: bug #1501027, possible user/password
|
||||
disclosure when switching from http to https
|
||||
* libraries/Config.class.php: bug #1501027, possible user/password
|
||||
disclosure when switching from http to https
|
||||
|
||||
2006-06-22 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* libraries/database_interface.lib.php, /export/sql.php, lang/*:
|
||||
|
@@ -297,7 +297,11 @@ function PMA_DBI_get_tables_full($database, $table = false,
|
||||
$tables = PMA_DBI_fetch_result($sql, array('TABLE_SCHEMA', 'TABLE_NAME'),
|
||||
null, $link);
|
||||
unset( $sql_where_table, $sql );
|
||||
} else {
|
||||
}
|
||||
// If permissions are wrong on even one database directory,
|
||||
// information_schema does not return any table info for any database
|
||||
// this is why we fall back to SHOW TABLE STATUS even for MySQL >= 50002
|
||||
if ( PMA_MYSQL_INT_VERSION < 50002 || empty($tables)) {
|
||||
foreach ( $databases as $each_database ) {
|
||||
if ( true === $tbl_is_group ) {
|
||||
$sql = 'SHOW TABLE STATUS FROM '
|
||||
|
Reference in New Issue
Block a user