# This is an automatically generated code sample.
# To make this code sample work in your Oracle Cloud tenancy,
# please replace the values for any parameters whose current values do not fit
# your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and
# boolean, number, and enum parameters with values not fitting your use case).
import oci
# Create a default config using DEFAULT profile in default location
# Refer to
# https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File
# for more info
config = oci.config.from_file()
# Initialize service client with default config file
mysql_client = oci.mysql.MysqlaasClient(config)
# Send the request to service, some parameters are not required, see API
# doc for more info
create_configuration_response = mysql_client.create_configuration(
create_configuration_details=oci.mysql.models.CreateConfigurationDetails(
compartment_id="ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
shape_name="EXAMPLE-shapeName-Value",
description="EXAMPLE-description-Value",
display_name="EXAMPLE-displayName-Value",
init_variables=oci.mysql.models.InitializationVariables(
lower_case_table_names="CASE_SENSITIVE"),
variables=oci.mysql.models.ConfigurationVariables(
completion_type="RELEASE",
big_tables=False,
character_set_server="LATIN1",
collation_server="GBK_CHINESE_CI",
connection_memory_chunk_size=360504027,
connection_memory_limit=1809751928859729152,
default_authentication_plugin="caching_sha2_password",
global_connection_memory_limit=5666887171946682368,
global_connection_memory_tracking=True,
transaction_isolation="READ-COMMITTED",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=True,
foreign_key_checks=False,
group_replication_consistency="BEFORE_AND_AFTER",
group_concat_max_len=6061424763038233604,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=False,
local_infile=False,
mysql_firewall_mode=False,
mysqlx_enable_hello_notice=True,
sql_require_primary_key=False,
sql_warnings=False,
binlog_expire_logs_seconds=722,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=True,
innodb_buffer_pool_size=952985485964199936,
innodb_ft_result_cache_limit=1690782160,
max_binlog_cache_size=51513364471084,
max_connect_errors=5029483842106526721,
max_heap_table_size=9160803912198447104,
max_connections=15592,
max_prepared_stmt_count=2113668,
connect_timeout=28841629,
cte_max_recursion_depth=1711707935,
generated_random_password_length=61,
information_schema_stats_expiry=16880623,
innodb_buffer_pool_dump_pct=98,
innodb_buffer_pool_instances=37,
innodb_ddl_buffer_size=3161674780,
innodb_ddl_threads=54,
innodb_ft_max_token_size=62,
innodb_ft_min_token_size=5,
innodb_ft_num_word_optimize=448,
innodb_lock_wait_timeout=99266600,
innodb_max_purge_lag=3956955916,
innodb_max_purge_lag_delay=510504,
interactive_timeout=30315980,
innodb_stats_persistent_sample_pages=5883937798738074625,
innodb_stats_transient_sample_pages=6496695777161671681,
innodb_strict_mode=False,
max_allowed_packet=94668454,
max_execution_time=7028718782630618112,
mysqlx_connect_timeout=960193538,
mysqlx_document_id_unique_prefix=34982,
mysqlx_idle_worker_thread_timeout=2274,
mysqlx_interactive_timeout=949240,
mysqlx_max_allowed_packet=933539658,
mysqlx_min_worker_threads=7,
mysqlx_read_timeout=411072,
mysqlx_wait_timeout=1702112,
mysqlx_write_timeout=1999916,
net_read_timeout=6731270,
net_write_timeout=11431532,
parser_max_mem_size=484873778350361856,
query_alloc_block_size=2001679561,
query_prealloc_size=4748031504534738944,
regexp_time_limit=966307672,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=3369307445825612288,
mysqlx_deflate_default_compression_level=6,
mysqlx_deflate_max_client_compression_level=5,
mysqlx_lz4_max_client_compression_level=14,
mysqlx_lz4_default_compression_level=14,
mysqlx_zstd_max_client_compression_level=13,
mysqlx_zstd_default_compression_level=16,
mysql_zstd_default_compression_level=15,
sort_buffer_size=7458569574555768832,
wait_timeout=1032294,
thread_pool_dedicated_listeners=False,
thread_pool_max_transactions_limit=79220,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=230343,
binlog_group_commit_sync_no_delay_count=81786,
replica_net_timeout=19205348,
require_secure_transport=True,
innodb_redo_log_capacity=933818265,
thread_pool_transaction_delay=5301,
thread_pool_query_threads_per_group=4018,
explain_format="JSON",
explicit_defaults_for_timestamp=True,
sql_generate_invisible_primary_key=False,
temptable_max_ram=4133683936705811456,
innodb_change_buffering="PURGES",
innodb_adaptive_hash_index=True,
innodb_undo_log_truncate=False,
table_definition_cache=455357,
table_open_cache=253424,
relay_log_space_limit=210298023914660864,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=108,
skip_name_resolve=True,
max_user_connections=4020046013,
join_buffer_size=6778040141204400256,
max_seeks_for_key=1858689865558256641,
range_optimizer_max_mem_size=6059234639805874176,
auto_increment_increment=22504,
auto_increment_offset=61912,
innodb_autoinc_lock_mode=100,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=4513709070730112512,
innodb_sort_buffer_size=30024917,
innodb_numa_interleave=False,
thread_pool_size=356,
long_query_time=9487300),
options=[
oci.mysql.models.Option(
name="EXAMPLE-name-Value",
value="EXAMPLE-value-Value")],
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_Gi1Fx': 'EXAMPLE_VALUE_AtrWoehMtzBHuLkbcCc9'},
defined_tags={
'EXAMPLE_KEY_oVhuS': {
'EXAMPLE_KEY_4NE1X': 'EXAMPLE--Value'}}),
opc_request_id="1QKUFHYQ7L6SVIQ39VRB<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)