Create a database
db_createCreate a MySQL database and user on an aaPanel server. Set the access host to 127.0.0.1 by default, or use a specific IP or % for remote connections.
Instructions
Create a MySQL database and user. Pass 127.0.0.1 as the access host unless the app connects from another machine, in which case pass that machine ip or % for any host.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ps | No | Database remark. | |
| sid | No | Associated website id, 0 for none. | |
| ssl | No | SSL mode; leave empty for the default. | |
| name | Yes | Database name. | |
| dtype | No | Database type. | MySQL |
| active | No | Mark the database active. | |
| address | No | Access host, same meaning as dataAccess. | 127.0.0.1 |
| codeing | No | Database charset. | utf8mb4 |
| db_user | Yes | Database user. | |
| password | Yes | Database password. | |
| dataAccess | No | Allowed host: 127.0.0.1, a specific ip, or % for any. | 127.0.0.1 |