Create DB user + grant
mysql_create_userCreate a MySQL user if missing and grant all privileges on a specific database, useful for site migrations where the database exists without a user.
Instructions
Create a MySQL user (if absent) and grant all privileges on one database. Useful when a migrated site has a DB but no registered user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database to grant on | |
| user | Yes | New username | |
| password | Yes | Password for the new user | |
| host | No | Allowed host | localhost |