Creating a Custom Configuration
Create a custom configuration for the DB system.
Using the Console
Use the Console to create a custom configuration for the DB system.
This task requires the following:
- A policy that permits you to create configurations in the compartment or tenancy.
Do the following to create a custom configuration using the
console:
Using the CLI
Use the command-line interface to create a custom configuration for the DB system.
This task requires the following:
- A compartment Oracle Cloud Indetifier (OCID).
- A policy that permits you to create configurations in the compartment or tenancy.
- A properly configured CLI installation and the requisite SSH keys. See Command Line Interface.
Create a custom configuration using the CLI either using a JSON payload or from a
single command without using a JSON payload:
If the command validates and runs successfully, you get a response similar to
the following, which summarizes the request and creates the configuration:
{
"data": {
"compartment-id": "ocid1.compartment.oc1..longAlphanumericString",
"defined-tags": {
"Oracle-Tags": {
"CreatedBy": "userName",
"CreatedOn": "2020-07-07T11:01:19.623Z"
}
},
"description": this is a user-defined configuration,
"display-name": "UserConfig001",
"freeform-tags": {},
"id": "ocid1.mysqlconfiguration.oc1.iad.longAlphanumericString",
"lifecycle-state": "ACTIVE",
"parent-configuration-id": null,
"shape-name": "VM.Standard.E2.1",
"time-created": "2020-07-07T11:01:19.635000+00:00",
"time-updated": "2020-07-07T11:01:19.635000+00:00",
"type": "CUSTOM",
"variables": {
"autocommit": true,
"binlog-expire-logs-seconds": 3600,
"completion-type": null,
"connect-timeout": 20,
"cte-max-recursion-depth": null,
"default-authentication-plugin": null,
"foreign-key-checks": null,
"generated-random-password-length": null,
"information-schema-stats-expiry": null,
"innodb-buffer-pool-instances": 4,
"innodb-buffer-pool-size": 3758096384,
"innodb-ft-enable-stopword": null,
"innodb-ft-max-token-size": null,
"innodb-ft-min-token-size": null,
"innodb-ft-num-word-optimize": null,
"innodb-ft-result-cache-limit": 33554432,
"innodb-ft-server-stopword-table": null,
"innodb-lock-wait-timeout": null,
"innodb-max-purge-lag": null,
"innodb-max-purge-lag-delay": 300000,
"local-infile": true,
"mandatory-roles": "public",
"max-connections": 1000,
"max-execution-time": null,
"max-prepared-stmt-count": null,
"mysql-firewall-mode": null,
"mysql-zstd-default-compression-level": null,
"mysqlx-connect-timeout": null,
"mysqlx-deflate-default-compression-level": null,
"mysqlx-deflate-max-client-compression-level": null,
"mysqlx-document-id-unique-prefix": null,
"mysqlx-enable-hello-notice": null,
"mysqlx-idle-worker-thread-timeout": null,
"mysqlx-interactive-timeout": null,
"mysqlx-lz4-default-compression-level": null,
"mysqlx-lz4-max-client-compression-level": null,
"mysqlx-max-allowed-packet": null,
"mysqlx-min-worker-threads": null,
"mysqlx-read-timeout": null,
"mysqlx-wait-timeout": null,
"mysqlx-write-timeout": null,
"mysqlx-zstd-max-client-compression-level": null,
"parser-max-mem-size": null,
"query-alloc-block-size": null,
"query-prealloc-size": null,
"sql-mode": null,
"sql-require-primary-key": true,
"sql-warnings": null,
"transaction-isolation": null
}
}
}