# 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="KOI8R",
collation_server="UCS2_CROATIAN_CI",
connection_memory_chunk_size=252067117,
connection_memory_limit=9162744319108060160,
default_authentication_plugin="sha256_password",
global_connection_memory_limit=5163132718107923456,
global_connection_memory_tracking=True,
transaction_isolation="SERIALIZABLE",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=True,
foreign_key_checks=True,
group_replication_consistency="BEFORE_ON_PRIMARY_FAILOVER",
group_concat_max_len=1378576651973726212,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=True,
local_infile=False,
mysql_firewall_mode=False,
mysqlx_enable_hello_notice=False,
sql_require_primary_key=False,
sql_warnings=True,
binlog_expire_logs_seconds=962,
binlog_row_metadata="MINIMAL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=True,
innodb_buffer_pool_size=7119280360739994624,
innodb_ft_result_cache_limit=238429809,
max_binlog_cache_size=48147179488125,
max_connect_errors=3601112375680522241,
max_heap_table_size=1632554563278928128,
max_connections=91949,
max_prepared_stmt_count=242571,
connect_timeout=5581255,
cte_max_recursion_depth=3251118071,
generated_random_password_length=64,
information_schema_stats_expiry=29617889,
innodb_buffer_pool_dump_pct=87,
innodb_buffer_pool_instances=5,
innodb_ddl_buffer_size=958244291,
innodb_ddl_threads=63,
innodb_ft_max_token_size=10,
innodb_ft_min_token_size=10,
innodb_ft_num_word_optimize=710,
innodb_lock_wait_timeout=887653837,
innodb_max_purge_lag=4103616810,
innodb_max_purge_lag_delay=825118,
interactive_timeout=19218621,
innodb_stats_persistent_sample_pages=8189586481840054273,
innodb_stats_transient_sample_pages=7691000066048161793,
innodb_strict_mode=False,
max_allowed_packet=106228064,
max_execution_time=2463123511119805440,
mysqlx_connect_timeout=978443858,
mysqlx_document_id_unique_prefix=52033,
mysqlx_idle_worker_thread_timeout=572,
mysqlx_interactive_timeout=388630,
mysqlx_max_allowed_packet=497879240,
mysqlx_min_worker_threads=88,
mysqlx_read_timeout=1289603,
mysqlx_wait_timeout=1471420,
mysqlx_write_timeout=767617,
net_read_timeout=13692558,
net_write_timeout=1983912,
parser_max_mem_size=7020574167414809216,
query_alloc_block_size=604846701,
query_prealloc_size=6788204168891966464,
regexp_time_limit=2068208932,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=7851219477049707520,
mysqlx_deflate_default_compression_level=1,
mysqlx_deflate_max_client_compression_level=7,
mysqlx_lz4_max_client_compression_level=7,
mysqlx_lz4_default_compression_level=10,
mysqlx_zstd_max_client_compression_level=17,
mysqlx_zstd_default_compression_level=12,
mysql_zstd_default_compression_level=4,
sort_buffer_size=61135661635730216,
wait_timeout=1819993,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=19671,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=917083,
binlog_group_commit_sync_no_delay_count=31237,
replica_net_timeout=17496515,
require_secure_transport=True,
innodb_redo_log_capacity=38594551362,
thread_pool_transaction_delay=61379,
thread_pool_query_threads_per_group=3802,
explain_format="TRADITIONAL",
explicit_defaults_for_timestamp=True,
sql_generate_invisible_primary_key=True,
temptable_max_ram=3533622215572532736,
innodb_change_buffering="ALL",
innodb_adaptive_hash_index=True,
innodb_undo_log_truncate=True,
table_definition_cache=136807,
table_open_cache=173502,
relay_log_space_limit=2589668823136984064,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=367,
skip_name_resolve=True,
max_user_connections=583133746,
join_buffer_size=5814391638613526656,
max_seeks_for_key=3177424103312688129,
range_optimizer_max_mem_size=4880379208664412160,
auto_increment_increment=3617,
auto_increment_offset=51450,
innodb_autoinc_lock_mode=942,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=3789575853275934208,
innodb_sort_buffer_size=55185834,
innodb_numa_interleave=True,
thread_pool_size=307,
long_query_time=15828913),
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_Vh5zR': 'EXAMPLE_VALUE_G0nAzzPIiWMkj9sbxjYq'},
defined_tags={
'EXAMPLE_KEY_uYCkC': {
'EXAMPLE_KEY_LmOp3': 'EXAMPLE--Value'}}),
opc_request_id="XMO48KVXDHMGXXAAJCEB<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)