Managing Database Users
Introduction
This tutorial shows you how to manage MySQL users and their permissions using DBWillow's visual user management interface.
Accessing User Management
- Connect to a database
- Click "User Management" in toolbar
- View all database users
Creating a New User
Step 1: Open Create Dialog
- Click "Create User" button
- User creation form appears
Step 2: Enter User Details
- Username: Choose a username
- Host: Select host:
localhost- Local connections only%- Any host- Specific IP - That IP only
- Password: Set secure password
Step 3: Select Role
Choose a role:
- Admin: Full access
- Read-Only: SELECT only
- Read-Write: SELECT, INSERT, UPDATE, DELETE
- Custom: Choose specific permissions
Step 4: Preview and Create
- Review permissions
- Click "Preview Changes"
- See SQL that will execute
- Click "Create User"
Assigning Permissions
Using Role Templates
- Select role from dropdown
- Permissions auto-configured
- Customize if needed
- Apply to user
Custom Permissions
- Select "Custom" role
- Choose specific permissions:
- Database-level
- Table-level
- Specific privileges
- Apply to user
Editing Users
Step 1: Find User
- Browse user list
- Find user to edit
- Click "Edit"
Step 2: Modify Permissions
- Change role or permissions
- Add/remove privileges
- Preview changes
- Apply updates
Best Practices
Security
- Use strong passwords
- Limit host access
- Principle of least privilege
- Regular audits
Organization
- Use descriptive usernames
- Document user purposes
- Group by function
- Regular cleanup
Common Scenarios
Application User
- Create user:
app_user - Host: Application server IP
- Role: Read-Write
- Database: Specific app database
Reporting User
- Create user:
reporting_user - Host: Reporting server
- Role: Read-Only
- Databases: Reporting databases
Admin User
- Create user:
admin_user - Host: Admin workstation
- Role: Admin
- Full access
Troubleshooting
Permission Denied
- Check user permissions
- Verify host restrictions
- Review error messages
Can't Create User
- Verify CREATE USER privilege
- Check username format
- Review MySQL logs
Next Steps
- Learn about User Management features
- Read SSH Tunnels tutorial
- Explore Security best practices
