phpMyAdmin displays the active database in both its navigation tree and page header, so the visible context determines where an unqualified table name is resolved. Selecting the intended database before opening the SQL editor keeps a valid statement from running against another schema.
The sample statement reads three columns from the devices table and filters the result to rows whose status is active. It runs through an account that has SELECT permission only on the inventory_app database.
A phpMyAdmin session retains the privileges of the connected database account; the browser interface does not add a separate permission boundary. Use a read-only account for inspection work and reserve write permissions for tasks that must change data.
Related: Import an SQL file in phpMyAdmin


SELECT id, device_name, STATUS FROM devices WHERE STATUS = 'active';
Data-changing SQL can modify or remove rows as soon as Go executes the submitted text.
Tool: SQL Formatter

