Overview
You can create additional MySQL users and assign permissions to a database. This is useful for developers, staging environments, or separating app permissions.
Create a new MySQL user
- Open DirectAdmin
- Go to MySQL Management
- Select your database
- Click Modify Privileges
- Click Add New User
- Enter:
- New username
- Password
- Click Create
Assign permissions
You can enable or disable the following permissions:
- SELECT — read data
- INSERT — add data
- UPDATE — edit data
- DELETE — remove data
- CREATE
- DROP
- ALTER
Choose the required permissions and click Save.
Tips
- Use separate users for production and development.
- Never grant full privileges to untrusted developers.
- Rotate passwords regularly for security.