Mastering phpMyAdmin 3.3.x for Effective MySQL Management
上QQ阅读APP看书,第一时间看更新

Query window

It's often convenient to have a distinct window in which we can type and refine queries, and which is synchronized with the main panel. This window is called the Query window. We can open this window by using the small SQL icon, or the Query window link from the navigation panel's icons or links zone.

This link or icon is displayed if $cfg['QueryFrame'] is set to TRUE. A value of TRUE for $cfg['QueryFrameJS'] tells phpMyAdmin to open a distinct window and update it by using JavaScript commands; of course, this only works for a JavaScript-enabled browser. If this is set to FALSE, clicking on Query window will only open the main panel, and will display the normal SQL subpage.

Note

The full usability of the Query window is only achieved with the distinct window mode.

The Query window itself has subpages, and it appears here over the main panel:

Query window

We can choose the dimensions (in pixels) of this window with $cfg['QueryWindowWidth'] and $cfg['QueryWindowHeight']. Chapter 11, Entering SQL Commands, explains the Query window in more detail, including the available SQL query history feature.