Creating a MySQL Database¶
This example shows how to deploy a MySQL database via Gasper
Prerequisites
- You have Master and DbMaker up and running
- You have DbMaker MySQL Plugin enabled
- You have already logged in and obtained a JSON Web Token
$ curl -X POST \
http://localhost:3000/dbs/mysql \
-H 'Authorization: Bearer {{token}}' \
-H 'Content-Type: application/json' \
-d '{
"name": "alphamysql",
"password": "alphamysql"
}'
{
"name": "alphamysql",
"password": "alphamysql",
"user": "alphamysql",
"instance_type": "database",
"language": "mysql",
"host_ip": "10.43.3.24",
"port": 33061,
"owner": "anish.mukherjee1996@gmail.com",
"success": true
}