Read-only database access is essential for reporting tools, analytics dashboards, and team members who need to view data without the ability to modify it. The Nobregas MySQL Panel makes it easy to create a user with only SELECT privileges — they can read everything but change nothing.
When to Use Read-Only Access
Grant SELECT-only access when:
- A reporting tool or dashboard needs to query the database.
- A team member needs to view data but should not modify it.
- A third-party integration only needs to read information.
- You want a safe exploration user for testing queries without risk.
- You follow the principle of least privilege for enhanced security.
Method 1: During User Creation
- Log in at mysql.nobregas.org.
- Go to Database Users > click Create User.
- Enter the username (e.g.,
readonlyorreports). - Set a strong password (use the generator button).
- Set host to
localhost(or a specific IP for remote access). - Select the database from the Grant to Database dropdown.
- The Privileges section appears with ALL PRIVILEGES checked.
- Uncheck the ALL PRIVILEGES checkbox.
- The individual privilege checkboxes appear.
- Check only SELECT under the Data category.
- Leave all other checkboxes unchecked.
- Click Create User.
The user now has read-only access — they can run SELECT queries but cannot INSERT, UPDATE, DELETE, or modify the database structure.
Method 2: Via Manage (Existing User)
If you have an existing user and want to add read-only access to a new database:
- Go to Database Users and click Manage on the user.
- In the Add Database Access section, select the database.
- Uncheck ALL PRIVILEGES.
- Check only SELECT.
- Click Add Grant.
Method 3: Downgrading Existing Privileges
If a user currently has ALL PRIVILEGES and you want to restrict them to read-only:
- Click Manage on the user.
- Find the database in Current Grants.
- Click Edit on that grant.
- Uncheck ALL PRIVILEGES.
- Check only SELECT.
- Click Save Changes.
The user's privileges are immediately downgraded. They can still connect but can only read data.
What a SELECT-Only User Can Do
- Run
SELECTqueries to read data from any table in the granted database. - Use
SHOW TABLES,DESCRIBE, andEXPLAINstatements. - Join tables and use aggregate functions (COUNT, SUM, AVG, etc.).
What a SELECT-Only User Cannot Do
- Insert new rows (
INSERT) - Update existing rows (
UPDATE) - Delete rows (
DELETE) - Create, alter, or drop tables
- Create views, routines, or triggers
- Modify the database in any way
Verifying Read-Only Access
After creating or updating the user, check the Database Users list. The database column shows a blue 1 privs badge, indicating only one privilege (SELECT) is granted. Click Manage to verify it is SELECT.
Pro Tip: Read-Only for Multiple Databases
You can grant SELECT-only access to multiple databases for the same user. Use the Manage modal to add each database individually with only SELECT checked. This creates a single reporting user that can query across several databases safely.