List of all SQL mentioned in the code..
Value | Count | File:Line |
---|---|---|
'SELECT * FROM @TABLE@ WHERE 1' | 1 |
|
'SELECT @@session.time_zone' | 1 |
|
'SELECT `DEFAULT_CHARACTER_SET_NAME`, `DEFAULT_COLLATION_NAME`' . ' FROM `information_schema`.`SCHEMATA` WHERE `SCHEMA_NAME`' . ' = \'' . $GLOBALS['dbi']->escapeString($db) . '\' LIMIT 1' | 1 |
|
'UPDATE ' | 1 |
|
'SHOW TABLE STATUS FROM ' . Util::backquote($db) . ' WHERE Name = \'' . $GLOBALS['dbi']->escapeString((string) $table) . '\'' | 1 |
|
'SELECT * FROM ' | 1 |
|
'SELECT `username`, `db_name`, `search_name`,' . ' `search_data` FROM' | 1 |
|
'SELECT `db_name`, `table_name`, `column_name`,' . ' `comment`, `mimetype`, `transformation`,' . ' `transformation_options`, `input_transformation`,' . ' `input_transformation_options` FROM' | 1 |
|
'SELECT `dbase`, `user`, `label`, `query` FROM ' | 1 |
|
'SELECT `db_name`, `table_name`, ' . "'@LAST_PAGE' AS `pdf_page_number`, `x`, `y` FROM " . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['table_coords']) . " WHERE `pdf_page_number` = '" . $page . "'" | 1 |
|
'SELECT `db_name`, `page_descr` FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation[$type]) . ' WHERE ' . Util::backquote($dbNameColumn) . " = '" . $GLOBALS['dbi']->escapeString($db) . "'" . " AND `page_nr` = '" . intval($page) . "'" | 1 |
|
'SELECT `page_nr`, `page_descr` FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation[$type]) . ' WHERE ' . Util::backquote($dbNameColumn) . " = '" . $GLOBALS['dbi']->escapeString($db) . "'" | 1 |
|
'SELECT EVENT_NAME FROM information_schema.EVENTS WHERE' . " EVENT_SCHEMA= '" . $GLOBALS['dbi']->escapeString($db) . "';" | 1 |
|
'insert multiple rows in every <code>INSERT</code> statement' . '<br> Example: <code>INSERT INTO' . ' tbl_name VALUES (1,2,3), (4,5,6), (7,8,9)</code>' | 1 |
|
'SELECT @@local_infile;' | 1 |
|
'SELECT * FROM ' . Util::backquote($GLOBALS['cfgRelation']['db']) . '.' . Util::backquote($GLOBALS['cfgRelation']['pdf_pages']) . ' WHERE db_name = \'' . $GLOBALS['dbi']->escapeString($this->_db) . '\' AND page_nr = \'' . $this->_pageNumber . '\'' | 1 |
|
'SELECT page_descr FROM ' . Util::backquote($GLOBALS['cfgRelation']['db']) . '.' . Util::backquote($GLOBALS['cfgRelation']['pdf_pages']) . ' WHERE page_nr = ' . $this->pageNumber | 1 |
|
'Show grid' | 1 |
|
'SHOW INDEX FROM ' . Util::backquote($this->tableName) . ';' | 1 |
|
'Show color' | 1 |
|
'Show current browsing query' | 1 |
|
'Show query history at start' | 1 |
|
'Show statistics' | 1 |
|
'Show SQL queries' | 1 |
|
'Show detailed MySQL server information' | 1 |
|
'Show phpinfo() link' | 1 |
|
'Show hint' | 1 |
|
'SELECT EVENT_NAME FROM information_schema.EVENTS ' . "WHERE EVENT_SCHEMA='" . $GLOBALS['dbi']->escapeString($db) . "'" | 1 |
|
'Update data when duplicate keys found on import (add ON DUPLICATE ' . 'KEY UPDATE)' | 1 |
|
'Show field types' | 1 |
|
'SHOW EVENTS FROM ' . $db . ' ' | 1 |
|
'SELECT * FROM ' . $groupTable . ' ORDER BY `usergroup` ASC' | 1 |
|
'SELECT `username` FROM ' . $usersTable . " WHERE `usergroup`='" . $dbi->escapeString($userGroup) . "'" | 1 |
|
'SELECT * FROM information_schema.PLUGINS ORDER BY PLUGIN_TYPE, PLUGIN_NAME' | 1 |
|
'Show hidden items' | 1 |
|
'SHOW EVENTS FROM ' . $escdDb . ' ' | 1 |
|
'SELECT `EVENT_NAME` AS `name` ' | 1 |
|
'SHOW ' . $routineType . " STATUS WHERE `Db`='" . $escdDb . "' " | 1 |
|
'SELECT `ROUTINE_NAME` AS `name` ' | 1 |
|
' SHOW FULL TABLES FROM ' | 1 |
|
'SELECT `TABLE_NAME` AS `name` ' | 1 |
|
'SELECT `item_name` FROM ' . $navTable . " WHERE `username`='" . $cfgRelation['user'] . "'" . " AND `item_type`='" . $type . "' AND `db_name`='" . $GLOBALS['dbi']->escapeString($db) . "'" | 1 |
|
"SHOW FUNCTION STATUS WHERE `Db`='" . $db . "' " | 1 |
|
'SELECT (COUNT(DB_first_level) DIV %d) * %d ' | 1 |
|
"SHOW PROCEDURE STATUS WHERE `Db`='" . $db . "' " | 1 |
|
'SHOW FULL TABLES FROM ' | 1 |
|
'SELECT `db_name`, COUNT(*) AS `count` FROM ' . $navTable . " WHERE `username`='" . $dbi->escapeString($GLOBALS['cfg']['Server']['user']) . "'" . ' GROUP BY `db_name`' | 1 |
|
'SELECT DB_first_level ' | 1 |
|
'SELECT `TRIGGER_NAME` AS `name` ' | 1 |
|
'SHOW COLUMNS FROM ' . $table . ' FROM ' . $db | 1 |
|
'SELECT `COLUMN_NAME` AS `name` ' | 1 |
|
'SHOW COLUMNS FROM ' . $table . ' FROM ' . $db . '' | 1 |
|
'SELECT `item_name`, `item_type` FROM ' . $navTable . " WHERE `username`='" . $this->dbi->escapeString($GLOBALS['cfg']['Server']['user']) . "'" . " AND `db_name`='" . $this->dbi->escapeString($database) . "'" . " AND `table_name`='" . (!empty($table) ? $this->dbi->escapeString($table) : '') . "'" | 1 |
|
'DELETE FROM ' . $navTable . ' WHERE' . " `username`='" . $this->dbi->escapeString($GLOBALS['cfg']['Server']['user']) . "'" . " AND `item_name`='" . $this->dbi->escapeString($itemName) . "'" . " AND `item_type`='" . $this->dbi->escapeString($itemType) . "'" . " AND `db_name`='" . $this->dbi->escapeString($dbName) . "'" . (!empty($tableName) ? " AND `table_name`='" . $this->dbi->escapeString($tableName) . "'" : '') | 1 |
|
'INSERT INTO ' . $navTable . '(`username`, `item_name`, `item_type`, `db_name`, `table_name`)' . ' VALUES (' . "'" . $this->dbi->escapeString($GLOBALS['cfg']['Server']['user']) . "'," . "'" . $this->dbi->escapeString($itemName) . "'," . "'" . $this->dbi->escapeString($itemType) . "'," . "'" . $this->dbi->escapeString($dbName) . "'," . "'" . (!empty($tableName) ? $this->dbi->escapeString($tableName) : '') . "')" | 1 |
|
' SELECT distinct SUBSTRING_INDEX(SCHEMA_NAME, ' | 1 |
|
'Show function fields' | 1 |
|
'Show table charset' | 1 |
|
'DELETE FROM ' . $groupTable . " WHERE `usergroup`='" . $dbi->escapeString($userGroup) . "'" | 1 |
|
'Delete bookmark' | 1 |
|
'SHOW INDEX FROM ' . Util::backquote($DB1) . '.' . Util::backquote($T1) . ';' | 1 |
|
'INSERT INTO ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['table_coords']) . ' (`db_name`, `table_name`, `pdf_page_number`, `x`, `y`)' . ' VALUES (' . "'" . $this->dbi->escapeString($DB) . "', " . "'" . $this->dbi->escapeString($TAB) . "', " . "'" . $pageId . "', " . "'" . $this->dbi->escapeString($_POST['t_x'][$key]) . "', " . "'" . $this->dbi->escapeString($_POST['t_y'][$key]) . "')" | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['table_coords']) . " WHERE `pdf_page_number` = '" . $pageId . "'" | 1 |
|
'SELECT MIN(`page_nr`)' . ' FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['pdf_pages']) . " WHERE `db_name` = '" . $this->dbi->escapeString($db) . "'" | 1 |
|
'SELECT `page_nr`' . ' FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['pdf_pages']) . " WHERE `page_descr` = '" . $this->dbi->escapeString($pg) . "'" | 1 |
|
'SELECT `page_nr`' . ' FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['pdf_pages']) . " WHERE `db_name` = '" . $this->dbi->escapeString($db) . "'" . " AND `page_descr` = '" . $this->dbi->escapeString($db) . "'" | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['pdf_pages']) . ' WHERE ' . Util::backquote('page_nr') . ' = ' . intval($pg) | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['table_coords']) . ' WHERE ' . Util::backquote('pdf_page_number') . ' = ' . intval($pg) | 1 |
|
'SELECT `page_descr`' . ' FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['pdf_pages']) . ' WHERE ' . Util::backquote('page_nr') . ' = ' . intval($pg) | 1 |
|
" SELECT CONCAT_WS('.', `db_name`, `table_name`) AS `name`, `db_name` as `dbName`, `table_name` as `tableName`, `x` AS `X`, `y` AS `Y`, 1 AS `V`, 1 AS `H` FROM " . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['table_coords']) . ' WHERE pdf_page_number = ' . intval($pg) | 1 |
|
'SHOW TABLES FROM ' . Util::backquote($GLOBALS['db']) | 1 |
|
'Update bookmark' | 1 |
|
'INSERT INTO ' . Util::backquote($GLOBALS['cfgRelation']['db']) . '.' . Util::backquote($GLOBALS['cfgRelation']['relation']) . '(master_db, master_table, master_field, ' . 'foreign_db, foreign_table, foreign_field)' . ' values(' . "'" . $this->dbi->escapeString($DB2) . "', " . "'" . $this->dbi->escapeString($T2) . "', " . "'" . $this->dbi->escapeString($F2) . "', " . "'" . $this->dbi->escapeString($DB1) . "', " . "'" . $this->dbi->escapeString($T1) . "', " . "'" . $this->dbi->escapeString($F1) . "')" | 1 |
|
'SELECT ' . htmlspecialchars(implode(', ', $select_clauses)) . "\n" | 1 |
|
'SHOW TABLES FROM ' . Util::backquote($this->_db) . ';' | 1 |
|
'SHOW GLOBAL VARIABLES LIKE \'event_scheduler\'' | 1 |
|
'SELECT ' . $columns . ' FROM `INFORMATION_SCHEMA`.`EVENTS` WHERE ' . $where . ';' | 1 |
|
'SELECT `TABLE_NAME` FROM `INFORMATION_SCHEMA`.`TABLES` ' | 1 |
|
'SELECT `DEFINER` FROM INFORMATION_SCHEMA.ROUTINES WHERE ' . $where . ';' | 1 |
|
"SELECT * FROM %s.%s WHERE `db_name` = '%s'" | 1 |
|
'SELECT ' . implode(', ', $end_query) . ";\n" | 1 |
|
'SELECT ' . $fields . ' FROM INFORMATION_SCHEMA.ROUTINES WHERE ' . $where . ';' | 1 |
|
'INSERT INTO ' . Util::backquote('mysql') . '.' . Util::backquote('procs_priv') . ' VALUES("' . $priv[0] . '", "' . $priv[1] . '", "' . $priv[2] . '", "' . $_POST['item_name'] . '", "' . $_POST['item_type'] . '", "' . $priv[5] . '", "' . $priv[6] . '", "' . $priv[7] . '");' | 1 |
|
'SELECT * FROM ' . Util::backquote('mysql') . '.' . Util::backquote('procs_priv') . ' where Routine_name = "' . $_POST['item_original_name'] . '" AND Routine_type = "' . $_POST['item_original_type'] . '";' | 1 |
|
'SELECT `settings_data` FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['designer_settings']) . ' WHERE ' . Util::backquote('username') . ' = "' . $dbi->escapeString($GLOBALS['cfg']['Server']['user']) . '";' | 1 |
|
'SHOW INDEX FROM ' . Util::backquote($DB2) . '.' . Util::backquote($T2) . ';' | 1 |
|
'DELETE FROM ' . Util::backquote($GLOBALS['cfgRelation']['db']) . '.' . $GLOBALS['cfgRelation']['relation'] . ' WHERE ' . "master_db = '" . $this->dbi->escapeString($DB2) . "'" . " AND master_table = '" . $this->dbi->escapeString($T2) . "'" . " AND master_field = '" . $this->dbi->escapeString($F2) . "'" . " AND foreign_db = '" . $this->dbi->escapeString($DB1) . "'" . " AND foreign_table = '" . $this->dbi->escapeString($T1) . "'" . " AND foreign_field = '" . $this->dbi->escapeString($F1) . "'" | 1 |
|
'Show or hide a column displaying the charset for all tables.' | 1 |
|
'Show row links anyway' | 1 |
|
'Show last check timestamp' | 1 |
|
'Show or hide a column displaying the Last check timestamp for all tables.' | 1 |
|
'Show last update timestamp' | 1 |
|
'Show or hide a column displaying the Last update timestamp for all tables.' | 1 |
|
'Show creation timestamp' | 1 |
|
'Show or hide a column displaying the Creation timestamp for all tables.' | 1 |
|
'Show table comments' | 1 |
|
'Show or hide a column displaying the comments for all tables.' | 1 |
|
'Show create database form' | 1 |
|
'Show password change form' | 1 |
|
'Show only listed databases' | 1 |
|
'Select which functions will be used for character set conversion.' | 1 |
|
'Show events in tree' | 1 |
|
'SELECT settings_data' . ' FROM ' . Util::backquote($cfgDesigner['db']) . '.' . Util::backquote($cfgDesigner['table']) . " WHERE username = '" . $this->dbi->escapeString($cfgDesigner['user']) . "';" | 1 |
|
'Show procedures in tree' | 1 |
|
'Show functions in tree' | 1 |
|
'Show views in tree' | 1 |
|
'Show tables in tree' | 1 |
|
'Show logo in navigation panel.' | 1 |
|
'Show databases navigation as tree' | 1 |
|
'Delete all cookies on logout' | 1 |
|
'Show server listing as a list instead of a drop down.' | 1 |
|
'Show column comments' | 1 |
|
'Show "Drop database" link to normal users' | 1 |
|
'INSERT INTO ' . Util::backquote($cfgDesigner['db']) . '.' . Util::backquote($cfgDesigner['table']) . ' (username, settings_data)' . " VALUES('" . $this->dbi->escapeString($cfgDesigner['user']) . "', '" . json_encode($save_data) . "');" | 1 |
|
'UPDATE ' . Util::backquote($cfgDesigner['db']) . '.' . Util::backquote($cfgDesigner['table']) . " SET settings_data = '" . $orig_data . "'" . " WHERE username = '" . $this->dbi->escapeString($cfgDesigner['user']) . "';" | 1 |
|
'DELETE FROM ' . $userTable . " WHERE `usergroup`='" . $dbi->escapeString($userGroup) . "'" | 1 |
|
'SELECT * FROM ' . $groupTable . " WHERE `usergroup`='" . $dbi->escapeString($userGroup) . "'" | 1 |
|
' SELECT `tables` FROM ' . $this->getPmaTable( ) . " WHERE `username` = '" . $GLOBALS['dbi']->escapeString($GLOBALS['cfg']['Server']['user']) . "'" | 1 |
|
'SELECT ' . Util::backquote($map[$meta->name][2]) . ' FROM ' . Util::backquote($map[$meta->name][3]) . '.' . Util::backquote($map[$meta->name][0]) . ' WHERE ' . Util::backquote($map[$meta->name][1]) . $where_comparison | 1 |
|
'SELECT 1 FROM `INFORMATION_SCHEMA`.`USER_PRIVILEGES` ' . "WHERE `PRIVILEGE_TYPE` = 'CREATE USER' AND " . "'''" . $user . "''@''" . $host . "''' LIKE `GRANTEE` LIMIT 1" | 1 |
|
'SELECT TRIGGER_SCHEMA, TRIGGER_NAME, EVENT_MANIPULATION' . ', EVENT_OBJECT_TABLE, ACTION_TIMING, ACTION_STATEMENT' . ', EVENT_OBJECT_SCHEMA, EVENT_OBJECT_TABLE, DEFINER' . ' FROM information_schema.TRIGGERS' . ' WHERE EVENT_OBJECT_SCHEMA ' . Util::getCollateForIS( ) . '=' . ' \'' . $escapedDb . '\'' | 1 |
|
'SHOW ' . ($full ? 'FULL' : '') . ' COLUMNS FROM ' . Util::backquote($database) . '.' . Util::backquote($table) . ($escapedColumn !== null ? "LIKE '" . $escapedColumn . "'" : '') | 1 |
|
'SHOW INDEXES FROM ' . Util::backquote($database) . '.' . Util::backquote($table) | 1 |
|
'SELECT *,' . ' `TABLE_SCHEMA` AS `Db`,' . ' `TABLE_NAME` AS `Name`,' . ' `TABLE_TYPE` AS `TABLE_TYPE`,' . ' `ENGINE` AS `Engine`,' . ' `ENGINE` AS `Type`,' . ' `VERSION` AS `Version`,' . ' `ROW_FORMAT` AS `Row_format`,' . ' `TABLE_ROWS` AS `Rows`,' . ' `AVG_ROW_LENGTH` AS `Avg_row_length`,' . ' `DATA_LENGTH` AS `Data_length`,' . ' `MAX_DATA_LENGTH` AS `Max_data_length`,' . ' `INDEX_LENGTH` AS `Index_length`,' . ' `DATA_FREE` AS `Data_free`,' . ' `AUTO_INCREMENT` AS `Auto_increment`,' . ' `CREATE_TIME` AS `Create_time`,' . ' `UPDATE_TIME` AS `Update_time`,' . ' `CHECK_TIME` AS `Check_time`,' . ' `TABLE_COLLATION` AS `Collation`,' . ' `CHECKSUM` AS `Checksum`,' . ' `CREATE_OPTIONS` AS `Create_options`,' . ' `TABLE_COMMENT` AS `Comment`' . ' FROM `information_schema`.`TABLES` t' . ' WHERE `TABLE_SCHEMA` ' . Util::getCollateForIS( ) . ' IN (\'' . implode("', '", $thisDatabases) . '\')' . ' ' . $sqlWhereTable | 1 |
|
'DELETE FROM ' . $templateTable . ' WHERE `id` = ' . $id . " AND `username` = '" . $user . "'" | 1 |
|
'UPDATE ' . $templateTable . ' SET `template_data` = ' . "'" . $GLOBALS['dbi']->escapeString($_POST['templateData']) . "'" . ' WHERE `id` = ' . $id . " AND `username` = '" . $user . "'" | 1 |
|
'SELECT `template_data` FROM ' . $templateTable . ' WHERE `id` = ' . $id . " AND `username` = '" . $user . "'" | 1 |
|
'INSERT INTO ' . $templateTable . '(' . ' `username`, `export_type`,' . ' `template_name`, `template_data`' . ') VALUES (' . "'" . $user . "', " . "'" . $GLOBALS['dbi']->escapeString($_POST['exportType']) . "', '" . $GLOBALS['dbi']->escapeString($_POST['templateName']) . "', '" . $GLOBALS['dbi']->escapeString($_POST['templateData']) . "');" | 1 |
|
'SELECT `id`, `template_name` FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['export_templates']) . ' WHERE `username` = ' . "'" . $GLOBALS['dbi']->escapeString($GLOBALS['cfg']['Server']['user']) . "' AND `export_type` = '" . $GLOBALS['dbi']->escapeString($exportType) . "'" . ' ORDER BY `template_name`;' | 1 |
|
'SELECT * FROM ' . Util::backquote($map[$meta->name][3]) . '.' . Util::backquote($map[$meta->name][0]) . ' WHERE ' . Util::backquote($map[$meta->name][1]) . $where_comparison | 1 |
|
'DELETE FROM ' . Sanitize::jsFormat($this->__get('table')) . ' WHERE ' . Sanitize::jsFormat($where_clause, false) . ($clause_is_unique ? '' : ' LIMIT 1') | 1 |
|
'SELECT *, ' . 'CAST(BIN_NAME AS CHAR CHARACTER SET utf8) AS SCHEMA_NAME' . ' FROM (' | 1 |
|
'DELETE FROM ' . Util::backquote($this->__get('table')) . ' WHERE ' . $where_clause . ($clause_is_unique ? '' : ' LIMIT 1') | 1 |
|
'SELECT ' . Query::getClause($analyzed_sql_results['statement'], $analyzed_sql_results['parser']->list, 'SELECT') | 1 |
|
'SELECT `' . $column_value . '` FROM `' . $row_info[$link_relations['link_param'][1]] . '`.`' . $row_info[$link_relations['link_param'][2]] . '`' | 1 |
|
"SHOW GLOBAL VARIABLES LIKE 'innodb_file_per_table';" | 1 |
|
"SHOW GLOBAL VARIABLES LIKE 'innodb_file_format';" | 1 |
|
'SELECT @@innodb_version;' | 1 |
|
'SHOW ENGINE INNODB STATUS;' | 1 |
|
'SHOW STATUS' . ' WHERE Variable_name LIKE \'Innodb\\_buffer\\_pool\\_%\'' . ' OR Variable_name = \'Innodb_page_size\';' | 1 |
|
'Show slave status' | 1 |
|
'Show master status' | 1 |
|
'Show slave hosts' | 1 |
|
'SHOW OPEN TABLES' | 1 |
|
'SELECT 1 FROM (' . 'SELECT `GRANTEE`, `IS_GRANTABLE` FROM ' . '`INFORMATION_SCHEMA`.`COLUMN_PRIVILEGES` UNION ' . 'SELECT `GRANTEE`, `IS_GRANTABLE` FROM ' . '`INFORMATION_SCHEMA`.`TABLE_PRIVILEGES` UNION ' . 'SELECT `GRANTEE`, `IS_GRANTABLE` FROM ' . '`INFORMATION_SCHEMA`.`SCHEMA_PRIVILEGES` UNION ' . 'SELECT `GRANTEE`, `IS_GRANTABLE` FROM ' . '`INFORMATION_SCHEMA`.`USER_PRIVILEGES`) t ' . "WHERE `IS_GRANTABLE` = 'YES' AND " . "'''" . $user . "''@''" . $host . "''' LIKE `GRANTEE` LIMIT 1" | 1 |
|
'SELECT *,' . ' `COLUMN_NAME` AS `Field`,' . ' `COLUMN_TYPE` AS `Type`,' . ' `COLLATION_NAME` AS `Collation`,' . ' `IS_NULLABLE` AS `Null`,' . ' `COLUMN_KEY` AS `Key`,' . ' `COLUMN_DEFAULT` AS `Default`,' . ' `EXTRA` AS `Extra`,' . ' `PRIVILEGES` AS `Privileges`,' . ' `COLUMN_COMMENT` AS `Comment`' . ' FROM `information_schema`.`COLUMNS`' | 1 |
|
'SELECT seq,state,duration FROM INFORMATION_SCHEMA.PROFILING' . ' WHERE QUERY_ID=1 ORDER BY seq' | 1 |
|
'UPDATE ' . Util::backquote($table) . ' SET ' . implode(', ', $query_values) . ' WHERE ' . $where_clause . ($_POST['clause_is_unique'] ? '' : ' LIMIT 1') | 1 |
|
'UPDATE ' . Util::backquote($this->table) . ' SET ' . Util::backquote($column) . ' =' . ' REPLACE(' . Util::backquote($column) . ", '" . $find . "', '" . $replaceWith . "')" . ' WHERE ' . Util::backquote($column) . " LIKE '%" . $find . "%' COLLATE " . $charSet . '_bin' | 1 |
|
'UPDATE ' . Util::backquote($this->table) . ' SET ' . Util::backquote($column) . ' = CASE' | 1 |
|
'SELECT ' . Util::backquote($column) . ',' . ' 1,' . ' COUNT(*)' . ' FROM ' . Util::backquote($this->db) . '.' . Util::backquote($this->table) . ' WHERE ' . Util::backquote($column) . " RLIKE '" . $this->dbi->escapeString($find) . "' COLLATE " . $charSet . '_bin' | 1 |
|
'SELECT ' . Util::backquote($column) . ',' . ' REPLACE(' . Util::backquote($column) . ", '" . $find . "', '" . $replaceWith . "')," . ' COUNT(*)' . ' FROM ' . Util::backquote($this->db) . '.' . Util::backquote($this->table) . ' WHERE ' . Util::backquote($column) . " LIKE '%" . $find . "%' COLLATE " . $charSet . '_bin' | 1 |
|
'SELECT @@character_set_connection' | 1 |
|
'SHOW TABLES FROM ' . Util::backquote($_POST['foreignDb']) | 1 |
|
'SHOW TABLE STATUS FROM ' . Util::backquote($_POST['foreignDb']) | 1 |
|
'SELECT ' . Util::backquote($_GET['transform_key']) . ' FROM ' . Util::backquote($table) . ' WHERE ' . $_GET['where_clause'] . ';' | 1 |
|
'SELECT * FROM `' . $_POST['db'] . '`.`' . $_POST['table'] . '` WHERE ' . $_POST['where_clause'] | 1 |
|
'SHOW KEYS FROM ' . Util::backquote($this->table) . ';' | 1 |
|
'UPDATE %s SET Column_name = "%s" WHERE Db = "%s" AND Table_name = "%s" AND Column_name = "%s";' | 1 |
|
'SELECT %s FROM %s.%s' | 1 |
|
'SELECT MIN(' . Util::backquote($column) . ') AS `min`, ' . 'MAX(' . Util::backquote($column) . ') AS `max` ' . 'FROM ' . Util::backquote($this->db) . '.' . Util::backquote($this->table) | 1 |
|
'Show PHP information' | 1 |
|
'SELECT * FROM ' . Util::backquote($_POST['db']) . '.' . Util::backquote($_POST['table']) . ' WHERE ' . $_POST['where_clause'] | 1 |
|
'SELECT * FROM `INFORMATION_SCHEMA`.`PROCESSLIST` ' | 1 |
|
'SHOW FULL PROCESSLIST' | 1 |
|
'SELECT UNIX_TIMESTAMP() - ' . $this->data->status['Uptime'] | 1 |
|
'SHOW BINLOG EVENTS' | 1 |
|
'SHOW GLOBAL VARIABLES WHERE Variable_name="' . $this->dbi->escapeString($params['varName']) . '";' | 1 |
|
'SHOW GLOBAL VARIABLES WHERE Variable_name=\'' . $this->dbi->escapeString($params['name']) . '\';' | 1 |
|
'SHOW GLOBAL VARIABLES;' | 1 |
|
'SHOW SESSION VARIABLES;' | 1 |
|
'Select all' | 1 |
|
"SELECT `VIEW_DEFINITION`, `CHECK_OPTION`, `DEFINER`, `SECURITY_TYPE` FROM `INFORMATION_SCHEMA`.`VIEWS` WHERE TABLE_SCHEMA='%s' AND TABLE_NAME='%s';" | 1 |
|
'SELECT * FROM ' . Util::backquote($table) . ' LIMIT 1;' | 1 |
|
'Show open tables' | 1 |
|
'SHOW GLOBAL VARIABLES WHERE Variable_name IN' . ' ("general_log","slow_query_log","long_query_time","log_output")' | 1 |
|
'DELETE FROM ' . $groupTable . " WHERE `usergroup`='" . $dbi->escapeString($userGroup) . "';" | 1 |
|
'SHOW COLUMNS FROM `mysql`.`db`;' | 1 |
|
'UPDATE `mysql`.`user` SET' . " `plugin` = '" . $authentication_plugin . "'" . " WHERE `User` = '" . $GLOBALS['dbi']->escapeString($username) . "' AND Host = '" . $GLOBALS['dbi']->escapeString($hostname) . "';" | 1 |
|
'SELECT @@old_passwords;' | 1 |
|
'UPDATE `mysql`.`user` SET ' . " `authentication_string` = '" . $hashedPassword . "', `Password` = '', " . " `plugin` = '" . $authentication_plugin . "'" . " WHERE `User` = '" . $GLOBALS['dbi']->escapeString($username) . "' AND Host = '" . $GLOBALS['dbi']->escapeString($hostname) . "';" | 1 |
|
"SHOW GRANTS FOR '" . $this->dbi->escapeString($user) . "'@'" . $this->dbi->escapeString($host) . "'" | 1 |
|
'SELECT @@default_authentication_plugin' | 1 |
|
'SELECT `plugin` FROM `mysql`.`user` WHERE `User` = "' . $GLOBALS['dbi']->escapeString($username) . '" AND `Host` = "' . $GLOBALS['dbi']->escapeString($hostname) . '"' | 1 |
|
'SELECT `plugin` FROM `mysql`.`user` WHERE `User` = "' . $GLOBALS['dbi']->escapeString($username) . '" AND `Host` = "' . $GLOBALS['dbi']->escapeString($hostname) . '" LIMIT 1' | 1 |
|
'SELECT COLUMN_NAME, CHARACTER_MAXIMUM_LENGTH ' . 'FROM information_schema.columns ' . "WHERE table_schema = 'mysql' AND table_name = 'user' " . "AND COLUMN_NAME IN ('User', 'Host')" | 1 |
|
'SELECT `PLUGIN_NAME`, `PLUGIN_DESCRIPTION`' . ' FROM `information_schema`.`PLUGINS` ' . "WHERE `PLUGIN_TYPE` = 'AUTHENTICATION';" | 1 |
|
'SELECT `Column_name`, `Column_priv`' . ' FROM `mysql`.`columns_priv`' . ' WHERE `User`' . ' = \'' . $this->dbi->escapeString($username) . "'" . ' AND `Host`' . ' = \'' . $this->dbi->escapeString($hostname) . "'" . ' AND `Db`' . ' = \'' . $this->dbi->escapeString(Util::unescapeMysqlWildcards($db)) . "'" . ' AND `Table_name`' . ' = \'' . $this->dbi->escapeString($table) . '\';' | 1 |
|
'SHOW COLUMNS FROM ' . Util::backquote(Util::unescapeMysqlWildcards($db)) . '.' . Util::backquote($table) . ';' | 1 |
|
'SHOW COLUMNS FROM `mysql`.`user`;' | 1 |
|
' SELECT *, \'r\' AS `Type` FROM `mysql`.`procs_priv` WHERE Db = \'' . $this->dbi->escapeString($db) . '\'; ' | 1 |
|
'UPDATE ' . $userTable . " SET `usergroup`='" . $this->dbi->escapeString($userGroup) . "'" . " WHERE `username`='" . $this->dbi->escapeString($username) . "'" | 1 |
|
'DELETE FROM ' . $userTable . " WHERE `username`='" . $this->dbi->escapeString($username) . "'" | 1 |
|
'INSERT INTO ' . $userTable . '(`username`, `usergroup`)' . " VALUES ('" . $this->dbi->escapeString($username) . "', " . "'" . $this->dbi->escapeString($userGroup) . "')" | 1 |
|
'SELECT DISTINCT `usergroup` FROM ' . $groupTable | 1 |
|
'SELECT `Table_priv`' . ' FROM `mysql`.`tables_priv`' . " WHERE `User` = '" . $this->dbi->escapeString($username) . "'" . " AND `Host` = '" . $this->dbi->escapeString($hostname) . "'" . " AND `Db` = '" . $this->dbi->escapeString(Util::unescapeMysqlWildcards($db)) . "'" . " AND `Table_name` = '" . $this->dbi->escapeString($table) . "';" | 1 |
|
'SELECT * FROM `mysql`.`db`' . " WHERE `User` = '" . $this->dbi->escapeString($username) . "'" . " AND `Host` = '" . $this->dbi->escapeString($hostname) . "'" . " AND '" . $this->dbi->escapeString(Util::unescapeMysqlWildcards($db)) . "'" . ' LIKE `Db`;' | 1 |
|
'SELECT * FROM `mysql`.`user`' . " WHERE `User` = '" . $this->dbi->escapeString($username) . "'" . " AND `Host` = '" . $this->dbi->escapeString($hostname) . "';" | 1 |
|
'Delete versioning rows_priv' | 1 |
|
'Show view_priv' | 1 |
|
'Show view' | 1 |
|
'SHOW COLUMNS FROM `mysql`.`tables_priv` LIKE \'Table_priv\';' | 1 |
|
'INSERT INTO ' . $groupTable . '(`usergroup`, `tab`, `allowed`)' . ' VALUES ' | 1 |
|
' SELECT `User`, `Host`, `Db`, \'t\' AS `Type`, `Table_name`, `Table_priv` FROM `mysql`.`tables_priv` WHERE ? LIKE `Db` AND ? LIKE `Table_name` AND NOT (`Table_priv` = \'\' AND Column_priv = \'\') ORDER BY `User` ASC, `Host` ASC, `Db` ASC, `Table_priv` ASC; ' | 1 |
|
'SELECT COUNT(*) FROM ' . $user_group_table | 1 |
|
'SELECT TIME(event_time) as event_time, user_host, thread_id, ' | 1 |
|
'SELECT * FROM `mysql`.`user`' | 1 |
|
'SELECT start_time, user_host, ' | 1 |
|
"SHOW GLOBAL VARIABLES WHERE Variable_name='" . implode("' OR Variable_name='", $serverVars) . "'" | 1 |
|
"SHOW GLOBAL STATUS WHERE Variable_name='" . implode("' OR Variable_name='", $statusVars) . "'" | 1 |
|
'SELECT `Proc_priv`' . ' FROM `mysql`.`procs_priv`' . " WHERE `User` = '" . $this->dbi->escapeString($username) . "'" . " AND `Host` = '" . $this->dbi->escapeString($hostname) . "'" . " AND `Db` = '" . $this->dbi->escapeString(Util::unescapeMysqlWildcards($database)) . "'" . " AND `Routine_name` LIKE '" . $this->dbi->escapeString($routine) . "';" | 1 |
|
'SHOW PLUGINS SONAME LIKE \'%_password_check%\'' | 1 |
|
"SELECT PASSWORD('" . $password . "') AS `password`;" | 1 |
|
'SELECT * FROM `mysql`.`db`' . $user_host_condition | 1 |
|
'UPDATE (`' . implode('`, `', $tmp_privs2['Update']) . '`)' | 1 |
|
'INSERT (`' . implode('`, `', $tmp_privs2['Insert']) . '`)' | 1 |
|
'SELECT (`' . implode('`, `', $tmp_privs2['Select']) . '`)' | 1 |
|
'SELECT `Column_name`, `Column_priv`' . ' FROM `mysql`.`columns_priv`' . ' WHERE `User`' . ' = \'' . $this->dbi->escapeString($_POST['old_username']) . "'" . ' AND `Host`' . ' = \'' . $this->dbi->escapeString($_POST['old_username']) . '\'' . ' AND `Db`' . ' = \'' . $this->dbi->escapeString($row['Db']) . "'" . ' AND `Table_name`' . ' = \'' . $this->dbi->escapeString($row['Table_name']) . "'" . ';' | 1 |
|
'SELECT `Db`, `Table_name`, `Table_priv` FROM `mysql`.`tables_priv`' . $user_host_condition | 1 |
|
'SELECT *,' . ' IF(`' . $password_column . "` = _latin1 '', 'N', 'Y') AS 'Password'" . ' FROM `mysql`.`user`' | 1 |
|
'SELECT `usergroup` FROM ' . $user_table . ' WHERE `username` = \'' . $username . '\'' . ' LIMIT 1' | 1 |
|
'SELECT USER()' | 1 |
|
'SELECT * FROM `mysql`.`user` ' . $user_host_condition | 1 |
|
'SELECT DISTINCT `User`, `Host` FROM `mysql`.`' . $table_search_in . '` ' . (isset($_GET['initial']) ? $this->rangeOfUsers($_GET['initial']) : '') | 1 |
|
'SELECT DISTINCT UPPER(LEFT(`User`,1)) FROM `user`' . ' ORDER BY UPPER(LEFT(`User`,1)) ASC' | 1 |
|
'SELECT * FROM `mysql`.`user` WHERE ' . "`User` = '" . $host['User'] . "' AND `Host` = '" . $host['Host'] . "'" | 1 |
|
'SELECT * FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['users']) | 1 |
|
'SHOW TABLES FROM ' . Util::backquote($dbname) | 1 |
|
'SELECT `Routine_name`, `Proc_priv`' . ' FROM `mysql`.`procs_priv`' . $user_host_condition . ' ORDER BY `Routine_name`' | 1 |
|
'SELECT `Table_name`,' . ' `Table_priv`,' . ' IF(`Column_priv` = _latin1 \'\', 0, 1)' . ' AS \'Column_priv\'' . ' FROM `mysql`.`tables_priv`' . $user_host_condition . ' ORDER BY `Table_name` ASC;' | 1 |
|
'SELECT * FROM `mysql`.`db`' . $user_host_condition . ' ORDER BY `Db` ASC' | 1 |
|
' SELECT DISTINCT `' . $dbOrTableName . '` FROM `mysql`.' . Util::backquote($table_search_in) . $user_host_condition | 1 |
|
"SELECT * FROM `mysql`.`user` WHERE `User` = '" . $this->dbi->escapeString($_GET['username']) . "';" | 1 |
|
'SELECT `page_nr`, `page_descr` FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['pdf_pages']) . " WHERE db_name = '" . $this->dbi->escapeString($db) . "'" . ' ORDER BY `page_descr`' | 1 |
|
'SELECT ' . Util::backquote($routine['item_name']) . '(' . implode(', ', $args) . ') ' . 'AS ' . Util::backquote($routine['item_name']) . ";\n" | 1 |
|
'SHOW TABLES FROM ' . Util::backquote($db) . ';' | 1 |
|
' SELECT DISTINCT db_name, table_name FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['tracking']) . " WHERE db_name = '" . $GLOBALS['dbi']->escapeString($GLOBALS['db']) . "' " . ' ORDER BY db_name, table_name' | 1 |
|
'SHOW GRANTS' | 1 |
|
'SHOW GLOBAL VARIABLES ' . $like . ';' | 1 |
|
'SELECT @@disabled_storage_engines' | 1 |
|
'SHOW STORAGE ENGINES' | 1 |
|
'INSERT INTO ' . $query_table . ' (`username`, `timevalue`,`config_data`) ' . 'VALUES (\'' . $GLOBALS['dbi']->escapeString($cfgRelation['user']) . '\', NOW(), ' . '\'' . $GLOBALS['dbi']->escapeString($config_data) . '\')' | 1 |
|
'UPDATE ' . $query_table . ' SET `timevalue` = NOW(), `config_data` = \'' . $GLOBALS['dbi']->escapeString($config_data) . '\'' . ' WHERE `username` = \'' . $GLOBALS['dbi']->escapeString($cfgRelation['user']) . '\'' | 1 |
|
'SELECT `username` FROM ' . $query_table . ' WHERE `username` = \'' . $GLOBALS['dbi']->escapeString($cfgRelation['user']) . '\'' | 1 |
|
'SELECT `config_data`, UNIX_TIMESTAMP(`timevalue`) ts' . ' FROM ' . $query_table . ' WHERE `username` = \'' . $GLOBALS['dbi']->escapeString($cfgRelation['user']) . '\'' | 1 |
|
' SELECT * FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['tracking']) . ' WHERE `db_name` = \'' . $GLOBALS['dbi']->escapeString($db) . '\' AND `table_name` = \'' . $GLOBALS['dbi']->escapeString($tableName) . '\' AND `version` = \'' . $versionNumber . '\'' | 1 |
|
' SELECT table_name, MAX(version) as version FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['tracking']) . ' WHERE db_name = \'' . $GLOBALS['dbi']->escapeString($db) . '\' ' . ' GROUP BY table_name' . ' ORDER BY table_name ASC' | 1 |
|
'Delete tracking data row from report' | 1 |
|
' SELECT * FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['tracking']) . " WHERE db_name = '" . $GLOBALS['dbi']->escapeString($GLOBALS['db']) . "' " . " AND table_name = '" . $GLOBALS['dbi']->escapeString($GLOBALS['table']) . "' " . ' ORDER BY version DESC ' | 1 |
|
'SELECT COUNT(*) FROM ' . Util::backquote($table) . ';' | 1 |
|
'Show all' | 1 |
|
'SHOW PROFILE;' | 1 |
|
'SELECT FOUND_ROWS()' | 1 |
|
'SELECT SQL_CALC_FOUND_ROWS' | 1 |
|
'SELECT DATABASE()' | 1 |
|
'SELECT * FROM ' . Util::backquote($table) . $defaultOrderByClause | 1 |
|
'SELECT `' . $column . '` FROM `' . $db . '`.`' . $table . '` WHERE ' . $where_clause | 1 |
|
'SELECT COUNT(db_name) FROM ' . Util::backquote($central_list_table) . ' ' . 'WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' . ($num === 0 ? '' : 'LIMIT ' . $from . ', ' . $num) . ';' | 1 |
|
'SELECT * FROM ' . Util::backquote($centralTable) . ' ' . 'WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' | 1 |
|
'SELECT * FROM ' . Util::backquote($centralTable) . ' ' . 'WHERE db_name = \'' . $this->dbi->escapeString($db) . '\';' | 1 |
|
'UPDATE ' . Util::backquote($centralTable) . ' SET col_type = \'' . $this->dbi->escapeString($col_type) . '\'' . ', col_name = \'' . $this->dbi->escapeString($col_name) . '\'' . ', col_length = \'' . $this->dbi->escapeString($col_length) . '\'' . ', col_isNull = ' . $col_isNull . ', col_collation = \'' . $this->dbi->escapeString($collation) . '\'' . ', col_extra = \'' . implode(',', [$col_extra, $col_attribute]) . '\'' . ', col_default = \'' . $this->dbi->escapeString($col_default) . '\'' . ' WHERE db_name = \'' . $this->dbi->escapeString($db) . '\' ' . 'AND col_name = \'' . $this->dbi->escapeString($orig_col_name) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($central_list_table) . ' ' . 'WHERE db_name = \'' . $this->dbi->escapeString($database) . '\' AND col_name IN (' . $cols . ');' | 1 |
|
'SHOW TABLES LIKE \'' . $dbi->escapeString($table) . '\';' | 1 |
|
'SELECT `tab` FROM ' . $groupTable . " WHERE `allowed` = 'N'" . " AND `tab` LIKE '" . $level . "%'" . ' AND `usergroup` = (SELECT usergroup FROM ' . $userTable . " WHERE `username` = '" . $dbi->escapeString($GLOBALS['cfg']['Server']['user']) . "')" | 1 |
|
'SELECT col_name FROM ' . Util::backquote($central_list_table) . ' ' . 'WHERE db_name = \'' . $this->dbi->escapeString($db) . '\' AND col_name IN (' . $cols . ');' | 1 |
|
'SHOW PROCEDURE STATUS' . " WHERE `Db` = '" . $this->escapeString($db) . "'" | 1 |
|
'SELECT @@collation_server' | 1 |
|
'SELECT @@collation_database' | 1 |
|
'SELECT DEFAULT_COLLATION_NAME FROM information_schema.SCHEMATA' . ' WHERE SCHEMA_NAME = \'' . $this->escapeString($db) . '\' LIMIT 1' | 1 |
|
'SELECT @@basedir' | 1 |
|
'SELECT LAST_INSERT_ID();' | 1 |
|
'SELECT @@lower_case_table_names' | 1 |
|
'SELECT COUNT(*) AS %s FROM %s.%s' | 1 |
|
'SELECT 1 FROM mysql.user LIMIT 1' | 1 |
|
'SELECT CURRENT_USER();' | 1 |
|
'SHOW TRIGGERS FROM ' . Util::backquote($db) | 1 |
|
'SHOW EVENTS FROM ' . Util::backquote($db) | 1 |
|
'SHOW FUNCTION STATUS' . " WHERE `Db` = '" . $this->escapeString($db) . "'" | 1 |
|
'INSERT INTO ' . Util::backquote($cfgBookmark['db']) . '.' . Util::backquote($cfgBookmark['table']) . ' (id, dbase, user, query, label) VALUES (NULL, ' . "'" . $this->dbi->escapeString($this->_database) . "', " . "'" . $this->dbi->escapeString($this->_user) . "', " . "'" . $this->dbi->escapeString($this->_query) . "', " . "'" . $this->dbi->escapeString($this->_label) . "')" | 1 |
|
'SHOW CREATE ' . $which . ' ' . Util::backquote($db) . '.' . Util::backquote($name) | 1 |
|
'SHOW ' . $which . ' STATUS;' | 1 |
|
'SHOW WARNINGS' | 1 |
|
'SELECT @@version, @@version_comment' | 1 |
|
'SHOW FULL COLUMNS FROM ' . Util::backquote($database) . '.' . Util::backquote($table) | 1 |
|
'SHOW TABLE STATUS FROM ' . Util::backquote($database_name) . ';' | 1 |
|
'SHOW TABLE STATUS FROM ' . Util::backquote($each_database) | 1 |
|
'SHOW TABLE STATUS FROM ' . Util::backquote($each_database) . ' WHERE' | 1 |
|
'SHOW TABLES FROM ' . Util::backquote($database) . ';' | 1 |
|
'SELECT * FROM ' . Util::backquote($cfgBookmark['db']) . '.' . Util::backquote($cfgBookmark['table']) . " WHERE dbase = '" . $dbi->escapeString($db) . "'" | 1 |
|
'SELECT * FROM ' . Util::backquote($cfgBookmark['db']) . '.' . Util::backquote($cfgBookmark['table']) . " WHERE ( `user` = ''" . " OR `user` = '" . $dbi->escapeString($cfgBookmark['user']) . "' )" | 1 |
|
'DELETE FROM ' . Util::backquote($cfgBookmark['db']) . '.' . Util::backquote($cfgBookmark['table']) . ' WHERE id = ' . $this->_id | 1 |
|
'INSERT INTO ' . Util::backquote($central_list_table) . ' ' . 'VALUES ( \'' . $this->dbi->escapeString($db) . '\' ,' . '\'' . $this->dbi->escapeString($column) . '\',\'' . $this->dbi->escapeString($type) . '\',' . '\'' . $this->dbi->escapeString((string) $length) . '\',\'' . $this->dbi->escapeString($collation) . '\',' . '\'' . $this->dbi->escapeString($isNull) . '\',' . '\'' . implode(',', [$extra, $attribute]) . '\',\'' . $this->dbi->escapeString($default) . '\');' | 1 |
|
'SELECT * FROM ' . Util::backquote($central_list_table) . ' ' . 'WHERE db_name = \'' . $this->dbi->escapeString($db) . '\' AND col_name IN (' . $cols . ');' | 1 |
|
'SELECT `CHARACTER_SET_NAME` AS `Charset`,' . ' `DEFAULT_COLLATE_NAME` AS `Default collation`,' . ' `DESCRIPTION` AS `Description`,' . ' `MAXLEN` AS `Maxlen`' . ' FROM `information_schema`.`CHARACTER_SETS`' | 1 |
|
' SELECT `timevalue` FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['history']) . ' WHERE `username` = \'' . $this->dbi->escapeString($username) . '\' ORDER BY `timevalue` DESC LIMIT ' . $GLOBALS['cfg']['QueryHistoryMax'] . ', 1' | 1 |
|
'SELECT `column_name`, `table_name`,' . ' `table_schema`, `referenced_column_name`' . ' FROM `information_schema`.`key_column_usage`' . " WHERE `referenced_table_name` = '" . $this->dbi->escapeString($table) . "'" . " AND `referenced_table_schema` = '" . $this->dbi->escapeString($db) . "'" | 1 |
|
'INSERT INTO ' . Util::backquote($GLOBALS['cfgRelation']['db']) . '.' . Util::backquote($cfgRelation['pdf_pages']) . ' (db_name, page_descr)' . ' VALUES (\'' . $this->dbi->escapeString($db) . '\', \'' . $this->dbi->escapeString($newpage) . '\')' | 1 |
|
'UPDATE ' . Util::backquote($GLOBALS['cfgRelation']['db']) . '.' . Util::backquote($GLOBALS['cfgRelation']['navigationhiding']) . " SET db_name = '" . $this->dbi->escapeString($target_db) . "'," . " item_name = '" . $this->dbi->escapeString($target_table) . "'" . " WHERE db_name = '" . $this->dbi->escapeString($source_db) . "'" . " AND item_name = '" . $this->dbi->escapeString($source_table) . "'" . " AND item_type = 'table'" | 1 |
|
'DELETE FROM ' . Util::backquote($GLOBALS['cfgRelation']['db']) . '.' . Util::backquote($GLOBALS['cfgRelation']['table_coords']) . " WHERE db_name = '" . $this->dbi->escapeString($source_db) . "'" . " AND table_name = '" . $this->dbi->escapeString($source_table) . "'" | 1 |
|
'UPDATE ' . Util::backquote($GLOBALS['cfgRelation']['db']) . '.' . Util::backquote($GLOBALS['cfgRelation'][$table]) . ' SET ' . $db_field . ' = \'' . $this->dbi->escapeString($target_db) . '\', ' . $table_field . ' = \'' . $this->dbi->escapeString($target_table) . '\'' . ' WHERE ' . $db_field . ' = \'' . $this->dbi->escapeString($source_db) . '\'' . ' AND ' . $table_field . ' = \'' . $this->dbi->escapeString($source_table) . '\'' | 1 |
|
'UPDATE ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['relation']) . ' SET foreign_field = \'' . $this->dbi->escapeString($new_name) . '\'' . ' WHERE foreign_db = \'' . $this->dbi->escapeString($db) . '\'' . ' AND foreign_table = \'' . $this->dbi->escapeString($table) . '\'' . ' AND foreign_field = \'' . $this->dbi->escapeString($field) . '\'' | 1 |
|
'UPDATE ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['relation']) . ' SET master_field = \'' . $this->dbi->escapeString($new_name) . '\'' . ' WHERE master_db = \'' . $this->dbi->escapeString($db) . '\'' . ' AND master_table = \'' . $this->dbi->escapeString($table) . '\'' . ' AND master_field = \'' . $this->dbi->escapeString($field) . '\'' | 1 |
|
'UPDATE ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['table_info']) . ' SET display_field = \'' . $this->dbi->escapeString($new_name) . '\'' . ' WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' . ' AND table_name = \'' . $this->dbi->escapeString($table) . '\'' . ' AND display_field = \'' . $this->dbi->escapeString($field) . '\'' | 1 |
|
'SELECT COUNT(*)' . $f_query_from . $f_query_filter | 1 |
|
'SELECT ' . Util::backquote($foreign_field) . ($foreign_display === false ? '' : ', ' . Util::backquote($foreign_display)) | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['history']) . ' WHERE `username` = \'' . $this->dbi->escapeString($username) . '\' AND `timevalue` <= \'' . $max_time . '\'' | 1 |
|
' SELECT `db`, `table`, `sqlquery`, `timevalue` FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['history']) . ' WHERE `username` = \'' . $this->dbi->escapeString($username) . '\' ORDER BY `id` DESC' | 1 |
|
'SELECT * FROM ' . Util::backquote($db) . '.' . Util::backquote($table) . ' WHERE ' . $where_clause . ';' | 1 |
|
'INSERT INTO ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['history']) . ' (`username`, `db`, `table`, `timevalue`, `sqlquery`) VALUES (\'' . $this->dbi->escapeString($username) . '\', \'' . $this->dbi->escapeString($db) . '\', \'' . $this->dbi->escapeString($table) . '\', NOW(), \'' . $this->dbi->escapeString($sqlquery) . '\')' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['column_info']) . ' WHERE `db_name` = \'' . $this->dbi->escapeString($db) . '\' AND `table_name` = \'\' AND `column_name` = \'(db_comment)\'' | 1 |
|
'INSERT INTO ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['column_info']) . ' (`db_name`, `table_name`, `column_name`, `comment`)' . ' VALUES (\'' . $this->dbi->escapeString($db) . "', '', '(db_comment)', '" . $this->dbi->escapeString($comment) . "') " . ' ON DUPLICATE KEY UPDATE ' . "`comment` = '" . $this->dbi->escapeString($comment) . "'" | 1 |
|
' SELECT `db_name`, `comment` FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['column_info']) . " WHERE `column_name` = '(db_comment)'" | 1 |
|
' SELECT `comment` FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['column_info']) . " WHERE db_name = '" . $this->dbi->escapeString($db) . "' AND table_name = '' AND column_name = '(db_comment)'" | 1 |
|
' SELECT `display_field` FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['table_info']) . ' WHERE `db_name` = \'' . $this->dbi->escapeString((string) $db) . '\' AND `table_name` = \'' . $this->dbi->escapeString((string) $table) . '\'' | 1 |
|
' SELECT `master_field`, `foreign_db`, `foreign_table`, `foreign_field` FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['relation']) . ' WHERE `master_db` = \'' . $this->dbi->escapeString($db) . '\' AND `master_table` = \'' . $this->dbi->escapeString($table) . '\' ' | 1 |
|
'SHOW COLUMNS FROM ' . Util::backquote($GLOBALS['cfg']['Server']['pmadb']) . '.' . Util::backquote($GLOBALS['cfg']['Server']['column_info']) . ' WHERE Field IN (\'' . implode('\', \'', $new_cols) . '\')' | 1 |
|
'SELECT NULL FROM ' . $tableDbName . ' LIMIT 0' | 1 |
|
'SHOW TABLES FROM ' . Util::backquote($GLOBALS['cfg']['Server']['pmadb']) | 1 |
|
'SHOW SLAVE STATUS' | 1 |
|
'INSERT INTO %s.%s (' . '`db_name`, `table_name`, `column_name`, ' . '`comment`, `mimetype`, `transformation`, ' . '`transformation_options`) VALUES' | 1 |
|
'SHOW TABLE STATUS FROM ' . Util::backquote($foreignDb) | 1 |
|
'SELECT * FROM ' . Util::backquote($db) . '.' . Util::backquote($table) . ' LIMIT 1;' | 1 |
|
'SELECT count(db_name) FROM ' . Util::backquote($central_list_table) . ' ' . 'WHERE db_name = \'' . $this->dbi->escapeString($db) . '\';' | 1 |
|
'SELECT * FROM ' . implode(', ', $table_references) . ' WHERE ' . $where . $order_and_limit | 1 |
|
'SELECT * FROM ' . Util::backquote($central_list_table) . ' ' . 'WHERE db_name = \'' . $this->dbi->escapeString($db) . '\' ' . 'LIMIT ' . $from . ', ' . $num . ';' | 1 |
|
'SELECT * FROM ' . Util::backquote($central_list_table) . ' ' . 'WHERE db_name = \'' . $this->dbi->escapeString($db) . '\';' | 1 |
|
'SELECT ' . implode(', ', $nonGeneratedCols) . ' FROM ' . Util::backquote($db) . '.' . Util::backquote($table) . $add_query | 1 |
|
'SELECT ' . implode(', ', $nonGeneratedCols) . ' FROM ' . Util::backquote($db) . '.' . Util::backquote($table) | 1 |
|
'SELECT data_length + index_length from information_schema.TABLES WHERE table_schema = "' . $this->dbi->escapeString($db) . '" AND table_name = "' . $this->dbi->escapeString($table) . '"' | 1 |
|
'SELECT @@have_partitioning;' | 1 |
|
'SELECT `PARTITION_METHOD` FROM `information_schema`.`PARTITIONS`' . " WHERE `TABLE_SCHEMA` = '" . $GLOBALS['dbi']->escapeString($db) . "'" . " AND `TABLE_NAME` = '" . $GLOBALS['dbi']->escapeString($table) . "'" . ' LIMIT 1' | 1 |
|
'SELECT DISTINCT `PARTITION_NAME` FROM `information_schema`.`PARTITIONS`' . " WHERE `TABLE_SCHEMA` = '" . $GLOBALS['dbi']->escapeString($db) . "' AND `TABLE_NAME` = '" . $GLOBALS['dbi']->escapeString($table) . "'" | 1 |
|
'SELECT * FROM `information_schema`.`PARTITIONS`' . " WHERE `TABLE_SCHEMA` = '" . $GLOBALS['dbi']->escapeString($db) . "' AND `TABLE_NAME` = '" . $GLOBALS['dbi']->escapeString($table) . "'" | 1 |
|
'SELECT `SCHEMA_NAME` FROM `INFORMATION_SCHEMA`.`SCHEMATA`' | 1 |
|
'SELECT `ENGINE` FROM `information_schema`.`tables` ' . 'WHERE `table_name` = "' . $table . '" ' . 'AND `table_schema` = "' . $db . '" ' . 'AND UPPER(`engine`) IN ("' . implode('", "', $transactional_engines) . '")' | 1 |
|
'SELECT * FROM ' . Util::backquote($db) . '.' . Util::backquote($table) . ' ' . 'LIMIT 1' | 1 |
|
'SELECT ' . implode(', ', $columns) . ' FROM ' . implode(', ', $table_references) . ' WHERE ' . $where . $order_and_limit | 1 |
|
'Insert as new row' | 1 |
|
'INSERT INTO ' . Util::backquote($db_name) . '.' . Util::backquote($tables[$i][self::TBL_NAME]) . ' (' | 1 |
|
'UPDATE `mysql`.`user` SET' . " `authentication_string` = '" . $hashedPassword . "', `Password` = '', " . " `plugin` = '" . $orig_auth_plugin . "'" . " WHERE `User` = '" . $GLOBALS['dbi']->escapeString($username) . "' AND Host = '" . $GLOBALS['dbi']->escapeString($hostname) . "';" | 1 |
|
'SELECT ' . Util::backquote($table) . '.' . Util::backquote($column_name) . ' FROM ' . Util::backquote($db) . '.' . Util::backquote($table) . ' WHERE ' . $_POST['where_clause'][0] | 1 |
|
'SELECT UUID()' | 1 |
|
'SELECT * FROM ' . Util::backquote($foreigner['foreign_db']) . '.' . Util::backquote($foreigner['foreign_table']) . ' WHERE ' . Util::backquote($foreigner['foreign_field']) . $where_comparison | 1 |
|
'SELECT ' . Util::backquote($display_field) . ' FROM ' . Util::backquote($foreigner['foreign_db']) . '.' . Util::backquote($foreigner['foreign_table']) . ' WHERE ' . Util::backquote($foreigner['foreign_field']) . $where_comparison | 1 |
|
'INSERT ' | 1 |
|
'INSERT IGNORE ' | 1 |
|
'SELECT * FROM ' . Util::backquote($GLOBALS['db']) . '.' . Util::backquote($GLOBALS['table']) . ' WHERE ' . str_replace('` =', '` >', $one_where_clause) . ' LIMIT 1;' | 1 |
|
'Insert another new row' | 1 |
|
'Show insert query' | 1 |
|
'Insert as new row and ignore errors' | 1 |
|
'SHOW CHARACTER SET' | 1 |
|
'SHOW GRANTS FOR CURRENT_USER();' | 1 |
|
'SHOW COLLATION' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['table_coords']) . ' WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' . ' AND table_name = \'' . $this->dbi->escapeString($table) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['table_uiprefs']) . ' WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['relation']) . ' WHERE foreign_db = \'' . $this->dbi->escapeString($db) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['relation']) . ' WHERE master_db = \'' . $this->dbi->escapeString($db) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['table_coords']) . ' WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['pdf_pages']) . ' WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['table_info']) . ' WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['bookmark']) . ' WHERE dbase = \'' . $this->dbi->escapeString($db) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['column_info']) . ' WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['navigationhiding']) . ' WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' . ' AND (table_name = \'' . $this->dbi->escapeString($table) . '\'' . ' OR (item_name = \'' . $this->dbi->escapeString($table) . '\'' . ' AND item_type = \'table\'))' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['table_uiprefs']) . ' WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' . ' AND table_name = \'' . $this->dbi->escapeString($table) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['relation']) . ' WHERE foreign_db = \'' . $this->dbi->escapeString($db) . '\'' . ' AND foreign_table = \'' . $this->dbi->escapeString($table) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['relation']) . ' WHERE master_db = \'' . $this->dbi->escapeString($db) . '\'' . ' AND master_table = \'' . $this->dbi->escapeString($table) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['table_info']) . ' WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' . ' AND table_name = \'' . $this->dbi->escapeString($table) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['savedsearches']) . ' WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['column_info']) . ' WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' . ' AND table_name = \'' . $this->dbi->escapeString($table) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['relation']) . ' WHERE foreign_db = \'' . $this->dbi->escapeString($db) . '\'' . ' AND foreign_table = \'' . $this->dbi->escapeString($table) . '\'' . ' AND foreign_field = \'' . $this->dbi->escapeString($column) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['relation']) . ' WHERE master_db = \'' . $this->dbi->escapeString($db) . '\'' . ' AND master_table = \'' . $this->dbi->escapeString($table) . '\'' . ' AND master_field = \'' . $this->dbi->escapeString($column) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['table_info']) . ' WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' . ' AND table_name = \'' . $this->dbi->escapeString($table) . '\'' . ' AND display_field = \'' . $this->dbi->escapeString($column) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['column_info']) . ' WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' . ' AND table_name = \'' . $this->dbi->escapeString($table) . '\'' . ' AND column_name = \'' . $this->dbi->escapeString($column) . '\'' | 1 |
|
'SELECT ' . 'COUNT(DISTINCT ' . $partialKey . ',' . $column . ') as pkColCnt ' . 'FROM (SELECT * FROM ' . Util::backquote($table) . ' LIMIT 500) as dt;' | 1 |
|
'SELECT COUNT(*) FROM (SELECT * FROM ' . Util::backquote($table) . ' LIMIT 500) as dt;' | 1 |
|
'Select up to what step you want to normalize' | 1 |
|
' SELECT ' . $primaryColumns . ',' . $repeatingColumn . ' as ' . Util::backquote($newColumn) . ' FROM ' . Util::backquote($table) | 1 |
|
'SELECT `COLLATION_NAME` AS `Collation`,' . ' `CHARACTER_SET_NAME` AS `Charset`,' . ' `ID` AS `Id`,' . ' `IS_DEFAULT` AS `Default`,' . ' `IS_COMPILED` AS `Compiled`,' . ' `SORTLEN` AS `Sortlen`' . ' FROM `information_schema`.`COLLATIONS`' | 1 |
|
'Select a column which can be split into more ' . 'than one (on select of \'no such column\', it\'ll move to next step).' | 1 |
|
'Show me the central list of columns that are not already in this table' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['navigationhiding']) . ' WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['central_columns']) . ' WHERE db_name = \'' . $this->dbi->escapeString($db) . '\'' | 1 |
|
'INSERT INTO ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['column_info']) . ' (db_name, table_name, column_name, mimetype, ' . 'transformation, transformation_options, ' . 'input_transformation, input_transformation_options) ' . ' VALUES(' . '\'' . $GLOBALS['dbi']->escapeString($db) . '\',' . '\'' . $GLOBALS['dbi']->escapeString($table) . '\',' . '\'' . $GLOBALS['dbi']->escapeString($key) . '\',' . '\'' . $GLOBALS['dbi']->escapeString($mimetype) . '\',' . '\'' . $GLOBALS['dbi']->escapeString($transformation) . '\',' . '\'' . $GLOBALS['dbi']->escapeString($transformationOpts) . '\',' . '\'' . $GLOBALS['dbi']->escapeString($inputTransform) . '\',' . '\'' . $GLOBALS['dbi']->escapeString($inputTransformOpts) . '\')' | 1 |
|
'INSERT IGNORE INTO ' . Util::backquote($GLOBALS['cfgRelation']['db']) . '.' . Util::backquote($GLOBALS['cfgRelation'][$pma_table]) . ' (' . implode(', ', $select_parts) . ', ' . implode(', ', $new_parts) . ') VALUES (\'' . implode('\', \'', $value_parts) . '\', \'' . implode('\', \'', $new_value_parts) . '\')' | 1 |
|
'SHOW CREATE TABLE ' . Util::backquote($this->_db_name) . '.' . Util::backquote($this->_name) | 1 |
|
'DELETE FROM ' . Util::backquote($GLOBALS['cfgRelation']['db']) . '.' . Util::backquote($cfgRelation['relation']) . ' WHERE master_db = \'' . $this->_dbi->escapeString($this->_db_name) . '\'' . ' AND master_table = \'' . $this->_dbi->escapeString($this->_name) . '\'' . ' AND master_field = \'' . $this->_dbi->escapeString($master_field) . '\'' | 1 |
|
'UPDATE ' . Util::backquote($GLOBALS['cfgRelation']['db']) . '.' . Util::backquote($cfgRelation['relation']) . ' SET foreign_db = \'' . $this->_dbi->escapeString($foreign_db) . '\', ' . ' foreign_table = \'' . $this->_dbi->escapeString($foreign_table) . '\', ' . ' foreign_field = \'' . $this->_dbi->escapeString($foreign_field) . '\' ' . ' WHERE master_db = \'' . $this->_dbi->escapeString($this->_db_name) . '\'' . ' AND master_table = \'' . $this->_dbi->escapeString($this->_name) . '\'' . ' AND master_field = \'' . $this->_dbi->escapeString($master_field) . '\'' | 1 |
|
'INSERT INTO ' . Util::backquote($GLOBALS['cfgRelation']['db']) . '.' . Util::backquote($cfgRelation['relation']) . '(master_db, master_table, master_field, foreign_db,' . ' foreign_table, foreign_field)' . ' values(' . '\'' . $this->_dbi->escapeString($this->_db_name) . '\', ' . '\'' . $this->_dbi->escapeString($this->_name) . '\', ' . '\'' . $this->_dbi->escapeString($master_field) . '\', ' . '\'' . $this->_dbi->escapeString($foreign_db) . '\', ' . '\'' . $this->_dbi->escapeString($foreign_table) . '\',' . '\'' . $this->_dbi->escapeString($foreign_field) . '\')' | 1 |
|
'DELETE FROM ' . Util::backquote($GLOBALS['cfgRelation']['db']) . '.' . Util::backquote($cfgRelation['table_info']) . ' WHERE db_name = \'' . $this->_dbi->escapeString($this->_db_name) . '\'' . ' AND table_name = \'' . $this->_dbi->escapeString($this->_name) . '\'' | 1 |
|
' DELETE FROM ' . $pma_table . ' ORDER BY last_update ASC' . ' LIMIT ' . $num_rows_to_delete | 1 |
|
'SELECT COUNT(*) FROM ' . $pma_table | 1 |
|
' SELECT `prefs` FROM ' . $pma_table . " WHERE `username` = '" . $this->_dbi->escapeString($GLOBALS['cfg']['Server']['user']) . "'" . " AND `db_name` = '" . $this->_dbi->escapeString($this->_db_name) . "'" . " AND `table_name` = '" . $this->_dbi->escapeString($this->_name) . "'" | 1 |
|
'SELECT * FROM %s.%s LIMIT 1' | 1 |
|
'SELECT column_name, comment' . ($GLOBALS['cfgRelation']['mimework'] ? ', mimetype, transformation, transformation_options' : '') . ' FROM ' . Util::backquote($GLOBALS['cfgRelation']['db']) . '.' . Util::backquote($GLOBALS['cfgRelation']['column_info']) . ' WHERE ' . ' db_name = \'' . $dbi->escapeString($source_db) . '\'' . ' AND ' . ' table_name = \'' . $dbi->escapeString((string) $source_table) . '\'' | 1 |
|
'INSERT INTO ' . $target . '(' . implode(', ', $nonGeneratedCols) . ') SELECT ' . implode(', ', $nonGeneratedCols) . ' FROM ' . $source | 1 |
|
'SELECT @@sql_mode' | 1 |
|
' SELECT ' . implode(', ', $select_parts) . ' FROM ' . Util::backquote($GLOBALS['cfgRelation']['db']) . '.' . Util::backquote($GLOBALS['cfgRelation'][$pma_table]) . ' WHERE ' . implode(' AND ', $where_parts) | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['bookmark']) . " WHERE `user` = '" . $this->dbi->escapeString($username) . "'" | 1 |
|
'SELECT 1 FROM ' . Util::backquote($db) . '.' . Util::backquote($table) . ' LIMIT ' . $GLOBALS['cfg']['MaxExactCountViews'] | 1 |
|
'SELECT COUNT(*) FROM ' . Util::backquote($db) . '.' . Util::backquote($table) | 1 |
|
'SELECT TABLE_NAME' . ' FROM information_schema.VIEWS' . ' WHERE TABLE_SCHEMA = \'' . $this->_dbi->escapeString($this->_db_name) . '\'' . ' AND TABLE_NAME = \'' . $this->_dbi->escapeString($this->_name) . '\'' . ' AND IS_UPDATABLE = \'YES\'' | 1 |
|
'SELECT TABLE_NAME' . ' FROM information_schema.VIEWS' . ' WHERE TABLE_SCHEMA = \'' . $this->_dbi->escapeString((string) $db) . '\'' . ' AND TABLE_NAME = \'' . $this->_dbi->escapeString((string) $table) . '\'' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['designer_settings']) . " WHERE `username` = '" . $this->dbi->escapeString($username) . "'" | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['savedsearches']) . " WHERE `username` = '" . $this->dbi->escapeString($username) . "'" | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['navigationhiding']) . " WHERE `username` = '" . $this->dbi->escapeString($username) . "'" | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['users']) . " WHERE `username` = '" . $this->dbi->escapeString($username) . "'" | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['userconfig']) . " WHERE `username` = '" . $this->dbi->escapeString($username) . "'" | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['table_uiprefs']) . " WHERE `username` = '" . $this->dbi->escapeString($username) . "'" | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['favorite']) . " WHERE `username` = '" . $this->dbi->escapeString($username) . "'" | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['recent']) . " WHERE `username` = '" . $this->dbi->escapeString($username) . "'" | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['history']) . " WHERE `username` = '" . $this->dbi->escapeString($username) . "'" | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['column_info']) . ' WHERE ' | 1 |
|
'DELETE FROM %s WHERE %s LIMIT 1;' | 1 |
|
'DELETE FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['column_info']) | 1 |
|
'UPDATE ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['column_info']) . ' SET ' . '`mimetype` = \'' . $GLOBALS['dbi']->escapeString($mimetype) . '\', ' . '`transformation` = \'' . $GLOBALS['dbi']->escapeString($transformation) . '\', ' . '`transformation_options` = \'' . $GLOBALS['dbi']->escapeString($transformationOpts) . '\', ' . '`input_transformation` = \'' . $GLOBALS['dbi']->escapeString($inputTransform) . '\', ' . '`input_transformation_options` = \'' . $GLOBALS['dbi']->escapeString($inputTransformOpts) . '\'' | 1 |
|
'SELECT * FROM ' . Util::backquote('columns_priv') . ' WHERE ' . 'Db = "' . $oldDb . '" AND Table_name = "' . $oldTable . '";' | 1 |
|
'INSERT INTO ' . Util::backquote('tables_priv') . ' VALUES("' . $old_priv[0] . '", "' . $newDb . '", "' . $old_priv[2] . '", "' . $newTable . '", "' . $old_priv[4] . '", "' . $old_priv[5] . '", "' . $old_priv[6] . '", "' . $old_priv[7] . '");' | 1 |
|
'SELECT EVENT_NAME FROM information_schema.EVENTS WHERE EVENT_SCHEMA= \'' . $this->dbi->escapeString($db) . '\';' | 1 |
|
'SELECT * FROM ' . Util::backquote('tables_priv') . ' where ' . 'Db = "' . $oldDb . '" AND Table_name = "' . $oldTable . '";' | 1 |
|
'UPDATE ' . Util::backquote('columns_priv') . 'SET Db = \'' . $this->dbi->escapeString($newDb) . '\', Table_name = \'' . $this->dbi->escapeString($newTable) . '\' where Db = \'' . $this->dbi->escapeString($oldDb) . '\' AND Table_name = \'' . $this->dbi->escapeString($oldTable) . '\';' | 1 |
|
'UPDATE ' . Util::backquote('tables_priv') . 'SET Db = \'' . $this->dbi->escapeString($newDb) . '\', Table_name = \'' . $this->dbi->escapeString($newTable) . '\' where Db = \'' . $this->dbi->escapeString($oldDb) . '\' AND Table_name = \'' . $this->dbi->escapeString($oldTable) . '\';' | 1 |
|
'SELECT ' . Util::backquote($table) . '.*' . ' FROM ' . Util::backquote($table) . ' LEFT JOIN ' . Util::backquote($arr['foreign_db']) . '.' . Util::backquote($arr['foreign_table']) | 1 |
|
'INSERT INTO ' . Util::backquote('procs_priv') . ' VALUES("' . $old_priv[0] . '", "' . $newname . '", "' . $old_priv[2] . '", "' . $old_priv[3] . '", "' . $old_priv[4] . '", "' . $old_priv[5] . '", "' . $old_priv[6] . '", "' . $old_priv[7] . '");' | 1 |
|
'SELECT * FROM ' . Util::backquote('procs_priv') . ' WHERE ' . 'Db = "' . $oldDb . '";' | 1 |
|
'SELECT @@have_profiling' | 1 |
|
'INSERT INTO ' . Util::backquote('columns_priv') . ' VALUES("' . $old_priv[0] . '", "' . $newname . '", "' . $old_priv[2] . '", "' . $old_priv[3] . '", "' . $old_priv[4] . '", "' . $old_priv[5] . '", "' . $old_priv[6] . '");' | 1 |
|
'UPDATE ' . Util::backquote('db') . 'SET Db = \'' . $this->dbi->escapeString($newname) . '\' where Db = \'' . $this->dbi->escapeString($oldDb) . '\';' | 1 |
|
'SELECT * FROM ' . Util::backquote('columns_priv') . ' WHERE ' . 'Db = "' . $oldDb . '";' | 1 |
|
'UPDATE ' . Util::backquote('tables_priv') . 'SET Db = \'' . $this->dbi->escapeString($newname) . '\' where Db = \'' . $this->dbi->escapeString($oldDb) . '\';' | 1 |
|
'UPDATE ' . Util::backquote('columns_priv') . 'SET Db = \'' . $this->dbi->escapeString($newname) . '\' where Db = \'' . $this->dbi->escapeString($oldDb) . '\';' | 1 |
|
'INSERT INTO ' . Util::backquote('tables_priv') . ' VALUES("' . $old_priv[0] . '", "' . $newname . '", "' . $old_priv[2] . '", "' . $old_priv[3] . '", "' . $old_priv[4] . '", "' . $old_priv[5] . '", "' . $old_priv[6] . '", "' . $old_priv[7] . '");' | 1 |
|
'SELECT * FROM ' . Util::backquote('tables_priv') . ' WHERE ' . 'Db = "' . $oldDb . '";' | 1 |
|
'INSERT INTO ' . Util::backquote('db') . ' VALUES("' . $old_priv[0] . '", "' . $newname . '"' | 1 |
|
'SELECT * FROM ' . Util::backquote('db') . ' WHERE ' . 'Db = "' . $oldDb . '";' | 1 |
|
'UPDATE ' . Util::backquote('procs_priv') . 'SET Db = \'' . $this->dbi->escapeString($newname) . '\' where Db = \'' . $this->dbi->escapeString($oldDb) . '\';' | 1 |
|
'INSERT INTO ' . Util::backquote('columns_priv') . ' VALUES("' . $old_priv[0] . '", "' . $newDb . '", "' . $old_priv[2] . '", "' . $newTable . '", "' . $old_priv[4] . '", "' . $old_priv[5] . '", "' . $old_priv[6] . '");' | 1 |
|
'SELECT @@ndb_version_string' | 1 |
|
' UPDATE ' . self::getTrackingTable( ) . " SET `tracking_active` = '" . $new_state . "' " . " WHERE `db_name` = '" . $GLOBALS['dbi']->escapeString($dbname) . "' " . " AND `table_name` = '" . $GLOBALS['dbi']->escapeString($tablename) . "' " . " AND `version` = '" . $GLOBALS['dbi']->escapeString((string) $version) . "' " | 1 |
|
' SELECT `mimetype`, `comment` FROM ' . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['column_info']) . ' WHERE `db_name` = \'' . $GLOBALS['dbi']->escapeString($db) . '\' AND `table_name` = \'' . $GLOBALS['dbi']->escapeString($table) . '\' AND `column_name` = \'' . $GLOBALS['dbi']->escapeString($key) . '\'' | 1 |
|
'SELECT `column_name`, ' | 1 |
|
'SELECT @@character_set_server;' | 1 |
|
'SELECT CONCAT(' . "`db_name`, '.', `table_name`, '.', `column_name`" . ') AS column_name, ' | 1 |
|
' SELECT * FROM ' . self::getTrackingTable( ) . " WHERE `db_name` = '" . $GLOBALS['dbi']->escapeString($dbname) . "' " | 1 |
|
' SELECT MAX(version) FROM ' . self::getTrackingTable( ) . " WHERE `db_name` = '" . $GLOBALS['dbi']->escapeString($dbname) . "' " . " AND `table_name` = '" . $GLOBALS['dbi']->escapeString($tablename) . "' " | 1 |
|
' UPDATE ' . self::getTrackingTable( ) . ' SET `' . $save_to . "` = '" . $new_data_processed . "' " . " WHERE `db_name` = '" . $GLOBALS['dbi']->escapeString($dbname) . "' " . " AND `table_name` = '" . $GLOBALS['dbi']->escapeString($tablename) . "' " . " AND `version` = '" . $GLOBALS['dbi']->escapeString($version) . "' " | 1 |
|
'INSERT INTO ' . $savedSearchesTbl . '(`username`, `db_name`, `search_name`, `search_data`)' . ' VALUES (' . "'" . $GLOBALS['dbi']->escapeString($this->getUsername( )) . "'," . "'" . $GLOBALS['dbi']->escapeString($this->getDbname( )) . "'," . "'" . $GLOBALS['dbi']->escapeString($this->getSearchName( )) . "'," . "'" . $GLOBALS['dbi']->escapeString(json_encode($this->getCriterias( ))) . "')" | 1 |
|
'SELECT ' . $spatialAsText . "(x'" . $hex . "')" | 1 |
|
'UPDATE ' . $savedSearchesTbl . "SET `search_name` = '" . $GLOBALS['dbi']->escapeString($this->getSearchName( )) . "', " . "`search_data` = '" . $GLOBALS['dbi']->escapeString(json_encode($this->getCriterias( ))) . "' " . 'WHERE id = ' . $this->getId( ) | 1 |
|
'DELETE FROM ' . $savedSearchesTbl . "WHERE id = '" . $GLOBALS['dbi']->escapeString($this->getId( )) . "'" | 1 |
|
' SELECT tracking_active FROM ' . self::getTrackingTable( ) . " WHERE db_name = '" . $GLOBALS['dbi']->escapeString($dbname) . "' " . " AND table_name = '" . $GLOBALS['dbi']->escapeString($tablename) . "' " . ' ORDER BY version DESC LIMIT 1' | 1 |
|
'SHOW FULL TABLES FROM ' . self::backquote($db) . $tblGroupSql | 1 |
|
'SHOW OPEN TABLES FROM ' . self::backquote($db) . ' WHERE In_use > 0;' | 1 |
|
'SELECT id, search_name, search_data ' . 'FROM ' . $savedSearchesTbl . ' ' . "WHERE id = '" . $GLOBALS['dbi']->escapeString($this->getId( )) . "' " | 1 |
|
'SELECT id, search_name ' . 'FROM ' . $savedSearchesTbl . ' ' . 'WHERE ' . "username = '" . $GLOBALS['dbi']->escapeString($this->getUsername( )) . "' " . "AND db_name = '" . $GLOBALS['dbi']->escapeString($this->getDbname( )) . "' " | 1 |
|
'SELECT `PRIVILEGE_TYPE` FROM `INFORMATION_SCHEMA`.`%s` ' . "WHERE GRANTEE='%s' AND PRIVILEGE_TYPE='%s'" | 1 |
|
'SELECT `SCHEMA_NAME` ' | 2 |
|
'SHOW ALL SLAVES STATUS' | 2 |
|
'SHOW MASTER STATUS' | 2 |
|
'SHOW COLUMNS FROM ' . $this->getFullName(true) | 2 |
|
'SHOW VIEW' | 2 |
|
'SELECT DISTINCT SUBSTRING_INDEX(SCHEMA_NAME, ' | 2 |
|
'SHOW TRIGGERS FROM ' . $db . " WHERE `Table` = '" . $table . "'" | 2 |
|
'DELETE HISTORY' | 2 |
|
'SHOW MASTER LOGS' | 2 |
|
'SHOW INDEXES FROM ' . $table . ' FROM ' . $db | 2 |
|
'SHOW TABLES FROM `mysql`;' | 2 |
|
"SELECT '1' FROM `mysql`.`user`" . " WHERE `User` = '" . $this->dbi->escapeString($username) . "'" . " AND `Host` = '" . $this->dbi->escapeString($hostname) . "';" | 2 |
|
'SHOW GLOBAL STATUS' | 2 |
|
'SHOW PROCESSLIST' | 2 |
|
'SHOW GLOBAL VARIABLES' | 2 |
|
'SHOW PLUGINS' | 2 |
|
'Show %1$s with dates from %2$s to %3$s by user %4$s %5$s' | 2 |
|
'SELECT * FROM ' . Util::backquote($table) . ' WHERE ' . $where_clause . ';' | 2 |
|
'SHOW CREATE TABLE ' . Util::backquote($db) . '.' . Util::backquote($table) | 2 |
|
'Update data when duplicate keys found on import' | 2 |
|
'SHOW SLAVE HOSTS' | 2 |
|
'SELECT `usergroup` FROM ' . $userTable . " WHERE `username` = '" . $this->dbi->escapeString($username) . "'" | 2 |
|
'Select oneā¦' | 2 |
|
'SELECT USER();' | 3 |
|
'SHOW DATABASES' | 4 |
|
'SHOW TABLES' | 4 |
|
'SELECT ' | 4 |
|
'SHOW DATABASES ' | 5 |
|
"SHOW DATABASES LIKE '" . $db . "'" | 6 |
|
'SELECT COUNT(*) ' | 8 |
|